[Ironruby-core] Getting up and running with ActiveRecord + Sqlserver

Scott Holden sholde4 at gmail.com
Fri Feb 19 17:56:04 EST 2010


Make that 0.9.2.  Apparently the 0.9 versioning is getting mixed up in my
head :P

On Fri, Feb 19, 2010 at 4:54 PM, Scott Holden <sholde4 at gmail.com> wrote:

> By the way, I'm working with Redmine 0.9.4 stable
>
>
> On Fri, Feb 19, 2010 at 4:53 PM, Scott Holden <sholde4 at gmail.com> wrote:
>
>> Hah!  I'm a moron.  Got started looking too deep for my problems, missed
>> my own stupid mistake... web^H^H^Hsqldevelopment1.  Thanks a ton for being
>> so helpful.
>>
>> I'm trying migrations from Redmine, but blowing up on
>> 044_set_language_length_to_five.
>>
>> Line 3 seems to be the issue:
>>
>> change_column :users, :language, :string, :limit => 5, :default => ""
>>
>> Here's my trace:
>>
>>
>> C:\Documents and Settings\sholden\My
>> Documents\NetBeansProjects\redmine>irake db:migrate --trace
>> (in C:/Documents and Settings/sholden/My
>> Documents/NetBeansProjects/redmine)
>> ** Invoke db:migrate (first_time)
>> ** Invoke environment (first_time)
>> ** Execute environment
>> ** Execute db:migrate
>> ==  Setup: migrating
>> ==========================================================
>> -- create_table("attachments", {:force=>true})
>>    -> 0.1406s
>> -- create_table("auth_sources", {:force=>true})
>>    -> 0.0313s
>> -- create_table("custom_fields", {:force=>true})
>>    -> 0.0156s
>> -- create_table("custom_fields_projects", {:id=>false, :force=>true})
>>    -> 0.0156s
>> -- create_table("custom_fields_trackers", {:id=>false, :force=>true})
>>    -> 0.0469s
>> -- create_table("custom_values", {:force=>true})
>>    -> 0.0313s
>> -- create_table("documents", {:force=>true})
>>    -> 0.0313s
>> -- add_index("documents", ["project_id"], {:name=>"documents_project_id"})
>>    -> 0.0000s
>> -- create_table("enumerations", {:force=>true})
>>    -> 0.0625s
>> -- create_table("issue_categories", {:force=>true})
>>    -> 0.0313s
>> -- add_index("issue_categories", ["project_id"],
>> {:name=>"issue_categories_project_id"})
>>    -> 0.0313s
>> -- create_table("issue_histories", {:force=>true})
>>    -> 0.0781s
>> -- add_index("issue_histories", ["issue_id"],
>> {:name=>"issue_histories_issue_id"})
>>    -> 0.0000s
>> -- create_table("issue_statuses", {:force=>true})
>>    -> 0.0781s
>> -- create_table("issues", {:force=>true})
>>    -> 0.0469s
>> -- add_index("issues", ["project_id"], {:name=>"issues_project_id"})
>>    -> 0.0000s
>> -- create_table("members", {:force=>true})
>>    -> 0.0156s
>> -- create_table("news", {:force=>true})
>>    -> 0.0625s
>> -- add_index("news", ["project_id"], {:name=>"news_project_id"})
>>    -> 0.0000s
>> -- create_table("permissions", {:force=>true})
>>    -> 0.0313s
>> -- create_table("permissions_roles", {:id=>false, :force=>true})
>>    -> 0.0156s
>> -- add_index("permissions_roles", ["role_id"],
>> {:name=>"permissions_roles_role_id"})
>>    -> 0.0156s
>> -- create_table("projects", {:force=>true})
>>    -> 0.0313s
>> -- create_table("roles", {:force=>true})
>>    -> 0.0156s
>> -- create_table("tokens", {:force=>true})
>>    -> 0.0313s
>> -- create_table("trackers", {:force=>true})
>>    -> 0.0313s
>> -- create_table("users", {:force=>true})
>>    -> 0.0313s
>> -- create_table("versions", {:force=>true})
>>    -> 0.0313s
>> -- add_index("versions", ["project_id"], {:name=>"versions_project_id"})
>>    -> 0.0000s
>> -- create_table("workflows", {:force=>true})
>>    -> 0.0313s
>> ==  Setup: migrated (2.4844s)
>> =================================================
>>
>> ==  IssueMove: migrating
>> ======================================================
>> ==  IssueMove: migrated (0.1094s)
>> =============================================
>>
>> ==  IssueAddNote: migrating
>> ===================================================
>> ==  IssueAddNote: migrated (0.1406s)
>> ==========================================
>>
>> ==  ExportPdf: migrating
>> ======================================================
>> ==  ExportPdf: migrated (0.1250s)
>> =============================================
>>
>> ==  IssueStartDate: migrating
>> =================================================
>> -- add_column(:issues, :start_date, :date)
>>    -> 0.0000s
>> -- add_column(:issues, :done_ratio, :integer, {:default=>0, :null=>false})
>>    -> 0.0313s
>> ==  IssueStartDate: migrated (0.0469s)
>> ========================================
>>
>> ==  CalendarAndActivity: migrating
>> ============================================
>> ==  CalendarAndActivity: migrated (0.1250s)
>> ===================================
>>
>> ==  CreateJournals: migrating
>> =================================================
>> -- create_table(:journals, {:force=>true})
>>    -> 0.0469s
>> -- create_table(:journal_details, {:force=>true})
>>    -> 0.0313s
>> -- add_index("journals", ["journalized_id", "journalized_type"],
>> {:name=>"journals_journalized_id"})
>>    -> 0.0156s
>> -- add_index("journal_details", ["journal_id"],
>> {:name=>"journal_details_journal_id"})
>>    -> 0.0156s
>> -- drop_table(:issue_histories)
>>    -> 0.0156s
>> ==  CreateJournals: migrated (0.3750s)
>> ========================================
>>
>> ==  CreateUserPreferences: migrating
>> ==========================================
>> -- create_table(:user_preferences)
>>    -> 0.0156s
>> ==  CreateUserPreferences: migrated (0.0156s)
>> =================================
>>
>> ==  AddHideMailPref: migrating
>> ================================================
>> -- add_column(:user_preferences, :hide_mail, :boolean, {:default=>false})
>>    -> 0.0156s
>> ==  AddHideMailPref: migrated (0.0156s)
>> =======================================
>>
>> ==  CreateComments: migrating
>> =================================================
>> -- create_table(:comments)
>>    -> 0.0156s
>> ==  CreateComments: migrated (0.0156s)
>> ========================================
>>
>> ==  AddNewsCommentsCount: migrating
>> ===========================================
>> -- add_column(:news, :comments_count, :integer, {:default=>0,
>> :null=>false})
>>    -> 0.0156s
>> ==  AddNewsCommentsCount: migrated (0.0156s)
>> ==================================
>>
>> ==  AddCommentsPermissions: migrating
>> =========================================
>> ==  AddCommentsPermissions: migrated (0.1094s)
>> ================================
>>
>> ==  CreateQueries: migrating
>> ==================================================
>> -- create_table(:queries, {:force=>true})
>>    -> 0.0313s
>> ==  CreateQueries: migrated (0.0313s)
>> =========================================
>>
>> ==  AddQueriesPermissions: migrating
>> ==========================================
>> ==  AddQueriesPermissions: migrated (0.0938s)
>> =================================
>>
>> ==  CreateRepositories: migrating
>> =============================================
>> -- create_table(:repositories, {:force=>true})
>>    -> 0.0313s
>> ==  CreateRepositories: migrated (0.0313s)
>> ====================================
>>
>> ==  AddRepositoriesPermissions: migrating
>> =====================================
>> ==  AddRepositoriesPermissions: migrated (0.1563s)
>> ============================
>>
>> ==  CreateSettings: migrating
>> =================================================
>> -- create_table(:settings, {:force=>true})
>>    -> 0.0156s
>> ==  CreateSettings: migrated (0.0313s)
>> ========================================
>>
>> ==  SetDocAndFilesNotifications: migrating
>> ====================================
>> ==  SetDocAndFilesNotifications: migrated (0.2031s)
>> ===========================
>>
>> ==  AddIssueStatusPosition: migrating
>> =========================================
>> -- add_column(:issue_statuses, :position, :integer, {:default=>1})
>>    -> 0.0156s
>> ==  AddIssueStatusPosition: migrated (0.0781s)
>> ================================
>>
>> ==  AddRolePosition: migrating
>> ================================================
>> -- add_column(:roles, :position, :integer, {:default=>1})
>>    -> 0.0156s
>> ==  AddRolePosition: migrated (0.1719s)
>> =======================================
>>
>> ==  AddTrackerPosition: migrating
>> =============================================
>> -- add_column(:trackers, :position, :integer, {:default=>1})
>>    -> 0.0156s
>> ==  AddTrackerPosition: migrated (0.0625s)
>> ====================================
>>
>> ==  SerializePossiblesValues: migrating
>> =======================================
>> ==  SerializePossiblesValues: migrated (0.0469s)
>> ==============================
>>
>> ==  AddTrackerIsInRoadmap: migrating
>> ==========================================
>> -- add_column(:trackers, :is_in_roadmap, :boolean, {:default=>true,
>> :null=>false})
>>    -> 0.0000s
>> ==  AddTrackerIsInRoadmap: migrated (0.0000s)
>> =================================
>>
>> ==  AddRoadmapPermission: migrating
>> ===========================================
>> ==  AddRoadmapPermission: migrated (0.1250s)
>> ==================================
>>
>> ==  AddSearchPermission: migrating
>> ============================================
>> ==  AddSearchPermission: migrated (0.0938s)
>> ===================================
>>
>> ==  AddRepositoryLoginAndPassword: migrating
>> ==================================
>> -- add_column(:repositories, :login, :string, {:limit=>60, :default=>""})
>>    -> 0.0000s
>> -- add_column(:repositories, :password, :string, {:limit=>60,
>> :default=>""})
>>    -> 0.0313s
>> ==  AddRepositoryLoginAndPassword: migrated (0.0313s)
>> =========================
>>
>> ==  CreateWikis: migrating
>> ====================================================
>> -- create_table(:wikis)
>>    -> 0.0000s
>> -- add_index(:wikis, :project_id, {:name=>:wikis_project_id})
>>    -> 0.0000s
>> ==  CreateWikis: migrated (0.0313s)
>> ===========================================
>>
>> ==  CreateWikiPages: migrating
>> ================================================
>> -- create_table(:wiki_pages)
>>    -> 0.0156s
>> -- add_index(:wiki_pages, [:wiki_id, :title],
>> {:name=>:wiki_pages_wiki_id_title})
>>    -> 0.0156s
>> ==  CreateWikiPages: migrated (0.0313s)
>> =======================================
>>
>> ==  CreateWikiContents: migrating
>> =============================================
>> -- create_table(:wiki_contents)
>>    -> 0.0156s
>> -- add_index(:wiki_contents, :page_id, {:name=>:wiki_contents_page_id})
>>    -> 0.0000s
>> -- create_table(:wiki_content_versions)
>>    -> 0.0313s
>> -- add_index(:wiki_content_versions, :wiki_content_id,
>> {:name=>:wiki_content_versions_wcid})
>>    -> 0.0000s
>> ==  CreateWikiContents: migrated (0.0469s)
>> ====================================
>>
>> ==  AddProjectsFeedsPermissions: migrating
>> ====================================
>> ==  AddProjectsFeedsPermissions: migrated (0.0938s)
>> ===========================
>>
>> ==  AddRepositoryRootUrl: migrating
>> ===========================================
>> -- add_column(:repositories, :root_url, :string, {:limit=>255,
>> :default=>""})
>>    -> 0.0000s
>> ==  AddRepositoryRootUrl: migrated (0.0156s)
>> ==================================
>>
>> ==  CreateTimeEntries: migrating
>> ==============================================
>> -- create_table(:time_entries)
>>    -> 0.0156s
>> -- add_index(:time_entries, [:project_id],
>> {:name=>:time_entries_project_id})
>>    -> 0.0000s
>> -- add_index(:time_entries, [:issue_id], {:name=>:time_entries_issue_id})
>>    -> 0.0156s
>> ==  CreateTimeEntries: migrated (0.0313s)
>> =====================================
>>
>> ==  AddTimelogPermissions: migrating
>> ==========================================
>> ==  AddTimelogPermissions: migrated (0.0938s)
>> =================================
>>
>> ==  CreateChangesets: migrating
>> ===============================================
>> -- create_table(:changesets)
>>    -> 0.0000s
>> -- add_index(:changesets, [:repository_id, :revision], {:unique=>true,
>> :name=>:changesets_repos_rev})
>>    -> 0.0156s
>> ==  CreateChangesets: migrated (0.0313s)
>> ======================================
>>
>> ==  CreateChanges: migrating
>> ==================================================
>> -- create_table(:changes)
>>    -> 0.0313s
>> -- add_index(:changes, [:changeset_id], {:name=>:changesets_changeset_id})
>>    -> 0.0000s
>> ==  CreateChanges: migrated (0.0313s)
>> =========================================
>>
>> ==  AddChangesetCommitDate: migrating
>> =========================================
>> -- add_column(:changesets, :commit_date, :date)
>>    -> 0.0156s
>> ==  AddChangesetCommitDate: migrated (0.0313s)
>> ================================
>>
>> ==  AddProjectIdentifier: migrating
>> ===========================================
>> -- add_column(:projects, :identifier, :string, {:limit=>20})
>>    -> 0.0000s
>> ==  AddProjectIdentifier: migrated (0.0000s)
>> ==================================
>>
>> ==  AddCustomFieldIsFilter: migrating
>> =========================================
>> -- add_column(:custom_fields, :is_filter, :boolean, {:null=>false,
>> :default=>false})
>>    -> 0.0000s
>> ==  AddCustomFieldIsFilter: migrated (0.0000s)
>> ================================
>>
>> ==  CreateWatchers: migrating
>> =================================================
>> -- create_table(:watchers)
>>    -> 0.0156s
>> ==  CreateWatchers: migrated (0.0156s)
>> ========================================
>>
>> ==  CreateChangesetsIssues: migrating
>> =========================================
>> -- create_table(:changesets_issues, {:id=>false})
>>    -> 0.0156s
>> -- add_index(:changesets_issues, [:changeset_id, :issue_id],
>> {:unique=>true, :name=>:changesets_issues_ids})
>>    -> 0.0000s
>> ==  CreateChangesetsIssues: migrated (0.0156s)
>> ================================
>>
>> ==  RenameCommentToComments: migrating
>> ========================================
>> ==  RenameCommentToComments: migrated (0.4063s)
>> ===============================
>>
>> ==  CreateIssueRelations: migrating
>> ===========================================
>> -- create_table(:issue_relations)
>>    -> 0.0156s
>> ==  CreateIssueRelations: migrated (0.0156s)
>> ==================================
>>
>> ==  AddRelationsPermissions: migrating
>> ========================================
>> ==  AddRelationsPermissions: migrated (0.1250s)
>> ===============================
>>
>> ==  SetLanguageLengthToFive: migrating
>> ========================================
>> -- change_column(:users, :language, :string, {:limit=>5, :default=>""})
>> rake aborted!
>> An error has occurred, this and all later migrations canceled:
>>
>> Invalid attempt to call Read when reader is closed.
>> System.Data:0:in `ReadInternal'
>> System.Data:0:in `Read'
>> statement.rb:48:in `fetch'
>> statement.rb:207:in `fetch'
>> statement.rb:236:in `each'
>> IronRuby.Libraries:0:in `Each'
>> :0:in `inject'
>> sqlserver_adapter.rb:878:in `handle_as_array'
>>
>> sqlserver_adapter.rb:862:in `raw_select'
>> sqlserver_adapter.rb:814:in `select'
>> database_statements.rb:6:in `select_all'
>> query_cache.rb:58:in `select_all_with_query_cache'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.1/lib/active_record/conn
>> ection_adapters/sqlserver_adapter.rb:911:in `remove_default_constraint'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.1/lib/active_record/conn
>> ection_adapters/sqlserver_adapter.rb:655:in `change_column'
>> :0:in `__send__'
>> migration.rb:348:in `method_missing'
>> migration.rb:328:in `say_with_time'
>> benchmark.rb:291:in `measure'
>> migration.rb:325:in `say_with_time'
>> migration.rb:345:in `method_missing'
>> ./db/migrate/044_set_language_length_to_five.rb:3:in `up'
>> :0:in `send'
>> migration.rb:282:in `migrate'
>> benchmark.rb:291:in `measure'
>> migration.rb:273:in `migrate'
>> :0:in `send'
>> C:1:in `migrate'
>> migration.rb:485:in `migrate'
>> :0:in `call'
>> migration.rb:560:in `ddl_transaction'
>> database_statements.rb:113:in `transaction'
>> transactions.rb:180:in `transaction'
>> migration.rb:558:in `ddl_transaction'
>> migration.rb:472:in `migrate'
>> :0:in `each'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:472:in`m
>> igrate'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:400:in`u
>> p'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:383:in`m
>> igrate'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:116
>> :0:in `[]'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in`execute'
>> :0:in `each'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in`execute'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in`invoke_with_call_chain'
>>
>> C:/Program Files/IronRuby 0.9.4.0/lib/ruby/1.8/monitor.rb:242:in`mon_synchronize'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in`invoke_with_call_chain'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in`invoke_task'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`top_level'
>> :0:in `each'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`top_level'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in`standard_exception_handling
>> '
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in`top_level'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in`standard_exception_handling
>> '
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
>> C:/Program Files/IronRuby
>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
>> :0:in `load'
>> C:/Program Files/IronRuby 0.9.4.0/bin/irake:19
>>
>>
>> On Fri, Feb 19, 2010 at 4:36 PM, Shri Borde <Shri.Borde at microsoft.com>wrote:
>>
>>>  We can lock back to 2.3 which is the version that we check against. Is
>>> the connection problem related to IronRuby or specific to your setup?
>>>
>>>
>>>
>>> *From:* ironruby-core-bounces at rubyforge.org [mailto:
>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Scott Holden
>>> *Sent:* Friday, February 19, 2010 2:29 PM
>>>
>>> *To:* ironruby-core at rubyforge.org
>>> *Subject:* Re: [Ironruby-core] Getting up and running with ActiveRecord
>>> + Sqlserver
>>>
>>>
>>>
>>> Locking down 2.3.1 fixed the old error, now I'm just having a connection
>>> problem.  BTW, there's no remote gem for 2.3.1, so people will need to pull
>>> it from github and build it themselves for now.  Here's my database.yml:
>>>
>>> development:
>>>   mode: ADONET
>>>   adapter: sqlserver
>>>   host: webdevelopment1
>>>   database: redmine_development
>>>   integrated_security: true
>>>
>>> On Fri, Feb 19, 2010 at 2:25 PM, Shri Borde <Shri.Borde at microsoft.com>
>>> wrote:
>>>
>>> Scott, I see you are using 2.3.4 of the activerecord-sqlserver-adapter
>>> gem. Can you lock down on 2.3.1 of the gem instead using something like the
>>> following in your Ruby code before you do “require ‘ironruby-sqlserver’”:
>>>
>>>
>>>
>>> gem “activerecord-sqlserver-adapter”, “= 2.3.1”
>>>
>>>
>>>
>>> They dropped support for DBI within the last week. The links below have
>>> info about the change.
>>>
>>>
>>> http://groups.google.com/group/rails-sqlserver-adapter/browse_thread/thread/4cf40c1330aef3a?hl=en
>>>
>>>
>>> http://groups.google.com/group/rails-sqlserver-adapter/browse_thread/thread/647522f857e3c31c?hl=en
>>>
>>>
>>>
>>> If locking down on 2.3.1 works for you, we can just add that to
>>> ironruby-sqlserver.
>>>
>>>
>>>
>>>
>>>
>>> *From:* ironruby-core-bounces at rubyforge.org [mailto:
>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Scott Holden
>>> *Sent:* Friday, February 19, 2010 11:25 AM
>>> *To:* ironruby-core at rubyforge.org
>>> *Subject:* [Ironruby-core] Getting up and running with ActiveRecord +
>>> Sqlserver
>>>
>>>
>>>
>>> I'm trying to follow the example given at
>>> http://ironruby.net/Documentation/Real_Ruby_Applications/Rails for
>>> getting ActiveRecord up and running.  Whenever I try to run a migration, I'm
>>> getting this error.  Could anyone point me in the right direction?  I'm
>>> trying to get a simple rails app up and running, then I want to start trying
>>> to get Redmine working on IronRuby.  Redmine is my company's only internal
>>> Rails app at the  moment, but I'd like to use it as a way to get people
>>> started using IronRuby.  It would be a great way to integrate a Rails
>>> application with our internal ORM and create a Redmine plugin to tie into
>>> our deployment system.
>>>
>>> Here's my trace from rake db:migrate
>>>
>>> C:\Documents and Settings\sholden\My
>>> Documents\NetBeansProjects\redmine>irake db:migrate --trace
>>> (in C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine)
>>> ** Invoke db:migrate (first_time)
>>> ** Invoke environment (first_time)
>>> ** Execute environment
>>> rake aborted!
>>> undefined method `columns' for :ado:Symbol
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:862:in`raw_select'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:827:in`select'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in`select_all'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:62:in`select_all_with_query_cache'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:13:in`select_one'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:19:in`select_value'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:215:in`database_version'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:847:in`info_schema_query'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1448:in`silence'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:847:in`info_schema_query'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:215:in`database_version'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:219:in
>>> `database_year'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:191:in`initialize'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/ironruby-sqlserver-0.1.0/lib/activerecord-sqlserver-adapter/adonet_patch.rb:36:in`sqlserver_connection'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in`new_connection'
>>> :0:in `__send__'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in`checkout_new_connection'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in`checkout'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in`checkout'
>>> :0:in `loop'
>>> C:/Program Files/IronRuby 0.9.4.0/lib/ruby/1.8/monitor.rb:242:in`mon_synchronize'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in`checkout'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in`connection'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in`retrieve_connection'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in`retrieve_connection'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in`connection'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:217:in
>>> `quoted_left_column_name'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:93:in
>>> `acts_as_nested_set'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/app/models/project.rb:54
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:
>>> in `load_file'
>>> :0:in `load'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:379:
>>> in `load_file'
>>> dependencies.rb:490:in `new_constants_in'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:259:
>>> in `require_or_load'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in
>>> `require_or_load_with_engine_additions'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const_missing_with_dependencies'
>>> dependencies.rb:398:in `load_missing_constant'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in`const_missing'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:98:in`const_missing'
>>> :0:in `__send__'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/app/models/attachment.rb:31
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in`load_file'
>>> :0:in `load'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:379
>>> :in `load_file'
>>> dependencies.rb:490:in `new_constants_in'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:259:in`require_or_load'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in
>>> `require_or_load_with_engine_additions'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:425:in`load_missing_constant'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const_missing_with_dependencies'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in`const_missing'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:437:in`load_missing_constant'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const_missing_with_dependencies'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:437:in`load_missing_constant'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const_missing_with_dependencies'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:437:in`load_missing_constant'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const_missing_with_dependencies'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:437:in`load_missing_constant'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const_missing_with_dependencies'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:32:in
>>> `acts_as_attachable'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/app/models/message.rb:22
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in`load_file'
>>> :0:in `load'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:379:in`load_file'
>>> dependencies.rb:490:in `new_constants_in'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:259:in`require_or_load'
>>> C:/Documents and Settings/sholden/My
>>> Documents/NetBeansProjects/redmine/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in
>>> `require_or_load_with_engine_additions'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:425:in`load_missing_constant'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const_missing_with_dependencies'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in`const_missing'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/observer.rb:157:in`observed_class'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/observer.rb:183:in`observed_classes'
>>> inflector.rb:360:in `constantize'
>>> :0:in `each'
>>> inflector.rb:355:in `constantize'
>>> inflections.rb:161:in `constantize'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/observer.rb:166:in`initialize'
>>> C:/Program Files/IronRuby 0.9.4.0/lib/ruby/1.8/singleton.rb:94
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/observer.rb:38:in`instantiate_observers'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/observer.rb:36:in`instantiate_observers'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:15:in`define_dispatcher_callbacks<http://0.9.4.0/lib/ironruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:15:in%60define_dispatcher_callbacks>
>>> '
>>> :0:in `each'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:182:in`evaluate_method<http://0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:182:in%60evaluate_method>
>>> '
>>> :0:in `[]'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:166:in`call<http://0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:166:in%60call>
>>> '
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:90:in`run'
>>> :0:in `each'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:90:in`run'
>>> :0:in `send'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:276:in`run_callbacks<http://0.9.4.0/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:276:in%60run_callbacks>
>>> '
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51:in`run_prepare_callbacks<http://0.9.4.0/lib/ironruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51:in%60run_prepare_callbacks>
>>> '
>>> :0:in `__send__'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:631:in`prepare_dispatcher'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:185:in`process'
>>> :0:in `send'
>>> C:/Program Files/IronRuby
>>> 0.9.4.0/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in`run'
>>>
>>> Thanks for any advice,
>>>
>>> -Scott
>>>
>>>
>>> _______________________________________________
>>> Ironruby-core mailing list
>>> Ironruby-core at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>>
>>>
>>>
>>> _______________________________________________
>>> Ironruby-core mailing list
>>> Ironruby-core at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100219/6206d051/attachment-0001.html>


More information about the Ironruby-core mailing list