missing quoting of  column and table names on activerecord-jdbcsqlite3-adapter
------------------------------------------------------------------------------

                 Key: JRUBY-3825
                 URL: http://jira.codehaus.org/browse/JRUBY-3825
             Project: JRuby
          Issue Type: Bug
          Components: ActiveRecord-JDBC
    Affects Versions: ActiveRecord-JDBC-0.9.1
            Reporter: Peter Ehrenberg


creating an table with an column named with an reserved word raises an 
exception because of missing quoting.

 class Record < ActiveRecord::Migration
  def self.up
    create_table :myrecords do |t|
      t.string :order
    end
  end
end

jruby -S rake db:migrate
....
ActiveRecord::ActiveRecordError: near "order": syntax error: CREATE TABLE 
myrecords (id INTEGER PRIMARY KEY AUTOINCREMENT, order text(0))



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to