Displaying 7 results from an estimated 7 matches for "index_nam".
Did you mean:
index_name
2006 Jul 04
3
OCIError: ORA-00918: column ambiguously defined
...command "rake db:schema:dump" i get this error in the
db/schema.rb file.
____________________________________________________
# Could not dump table "region" because of following
ActiveRecord::StatementInvalid
# OCIError: ORA-00918: column ambiguously defined:
SELECT lower(i.index_name) as index_name, i.uniqueness, lowe
r(c.column_name) as column_name
FROM user_indexes i, user_ind_columns c
WHERE i.table_name = ''REGION''
AND c.index_name = i.index_name
AND i.index_name NOT IN (SELECT index_name FROM
user_c...
2007 Aug 24
2
error in rails 1.2.3 activerecord
i''m a rails nuby so i don''t know where to fix this in the activerecord
module....
there is no such column in the sys.view.user_constraints.
SELECT uc.index_name FROM user_constraints uc WHERE uc.constraint_type =
''P''
this prevents me from doing a rake test:functionals ...as in below....
C:\railsspace>c:\ruby186\ruby\bin\ruby c:\ruby186\ruby\bin\rake
test:functionals --trace
(in C:/railsspace)
** Invoke test:functionals (first_time)...
2010 Mar 30
2
remove_index missed quote_table_name
in lib/active_record/connection_adapters/abstract/schema_statements.rb
there is a missing quote_table_name in line 286 (def remove_index):
execute "DROP INDEX #{quote_column_name(index_name(table_name,
options))} ON #{table_name}"
so my "keys" table can get an index with "add_index" but can''t remove
it (without tweaking)
replacing it to
execute "DROP INDEX #{quote_column_name(index_name(table_name,
options))} ON #{quote_table_name(table_name...
2006 Jul 03
9
Migrations from Mysql to Oracle. PLS HELP!
Hi all,
I''m using Rails/Mysql as development platform. the production server is
under Rails/Oracle.
Right now, i''m trying to install my application under the production
server, the connection to orcale is fine via Rails, but i have a weird
problem. example :
here is a extract from my db scheme :
Table User :_____________
id_user |
first_name |
2006 Apr 17
7
MySQL backticks and column names
...ction_adapters/abstract/schema_statements.r
b:196:in `add_index''
Which led me to the conclusion that the problem was in the add_index
method of the SchemaStatements module. I added this method to the MySQL
connection adapter and changed:
execute "CREATE #{index_type} INDEX #{index_name} ON #{table_name}
(#{Array(column_name).join(", ")})"
To:
execute "CREATE #{index_type} INDEX `#{index_name}` ON #{table_name}
(#{Array(column_name).map{ |e| "`#{e}`"}.join(", ")})"
And the problem went away. Is this just a MySQL issue o...
2007 Jul 07
2
Extending/Modifying QueryParser
...return if synonyms.nil?
synonyms.each do |s|
@synonym_stack.push(
Token.new(s, token.start, token.end, 0))
end
end
end
FInally a WordnetSynonymEngine that queries my wordnet index I created:
class WordnetSynonymEngine
include Ferret::Search
def initialize(index_name = "wordnet")
@searcher = Searcher.new("#{RAILS_ROOT}/index/#{ENV
[''RAILS_ENV'']}/#{index_name}")
end
def get_synonyms(word)
@searcher.search_each(TermQuery.new(:word, word)) do |doc_id,
score|
return @searcher[doc_id][:syn]
end...
2024 Apr 18
1
Tidyverse/dplyr solution for filling values of a tibble/dataframe from a column with a nested list.
...ibble.
I wrote a function to split each nested list:
nestsplit <- function(x, y) {?
`unlist(lapply(x, [[`, y))?
}?
And then generate unique columns with the column names (by index) and values of interest to append to the tibble?:
tibble <-?
tibble |> rowwise() |> mutate(index_names = list(paste0(?
"col_", as.character(nestsplit(nestedvals, 1))?
)),?
index_values = list(nestsplit(nestedvals, 2)))?
?
But I would like to see if there is an efficient, tidyverse/dplyr?-based solution to individually assign these values rather than writing a loop to assign...