Skip to content

Instantly share code, notes, and snippets.

@Pistos
Created April 2, 2011 18:51
Show Gist options
  • Select an option

  • Save Pistos/899754 to your computer and use it in GitHub Desktop.

Select an option

Save Pistos/899754 to your computer and use it in GitHub Desktop.
1) Error:
test_09_basic_schema(TestDatabase):
NoMethodError: undefined method `primary_key=' for #<RDBI::Column:0x00000001eb3c68>
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:107:in `block in table_schema'
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:97:in `each'
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:97:in `table_schema'
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:121:in `block in schema'
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:120:in `each'
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:120:in `schema'
/misc/git/rdbi-driver-postgresql/test/test_database.rb:201:in `test_09_basic_schema'
2) Error:
test_10_table_schema(TestDatabase):
NoMethodError: undefined method `primary_key=' for #<RDBI::Column:0x00000001e70e40>
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:107:in `block in table_schema'
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:97:in `each'
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:97:in `table_schema'
/misc/git/rdbi-driver-postgresql/test/test_database.rb:238:in `test_10_table_schema'
3) Error:
test_11_named_binds(TestDatabase):
PGError: ERROR: bind message supplies 1 parameters, but prepared statement "1301770338.3716867" requires 2
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:320:in `exec_prepared'
/misc/git/rdbi-driver-postgresql/lib/rdbi/driver/postgresql.rb:320:in `new_execution'
/home/pistos/.rvm/gems/ruby-1.9.2-p180@rdbi/gems/rdbi-0.9.1/lib/rdbi/statement.rb:163:in `execute'
/home/pistos/.rvm/gems/ruby-1.9.2-p180@rdbi/gems/rdbi-0.9.1/lib/rdbi/database.rb:189:in `execute'
/misc/git/rdbi-driver-postgresql/test/test_database.rb:271:in `test_11_named_binds'
13 tests, 107 assertions, 0 failures, 3 errors, 0 skips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment