Skip to content

Instantly share code, notes, and snippets.

@prathamesh-sonpatki
Created November 9, 2014 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prathamesh-sonpatki/5ebd3896238d17cff2b6 to your computer and use it in GitHub Desktop.
Save prathamesh-sonpatki/5ebd3896238d17cff2b6 to your computer and use it in GitHub Desktop.
Postgres error log
>> BUNDLE_GEMFILE=/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/gemfiles/rails41.gemfile bundle exec /Users/prathamesh/.rbenv/versions/jruby-1.7.16/bin/rake test_postgres
Creating PostgreSQL (test) database: arjdbc_test
Using ActiveRecord::VERSION = 4.1.7
Loaded suite /Users/prathamesh/.rbenv/versions/jruby-1.7.16/lib/ruby/gems/shared/gems/rake-10.3.2/lib/rake/rake_test_loader
Started
E
===============================================================================
Error: test: returns jdbc version 3 on java 5 (only for compatibility)(Jdbc::PostgresTest)
ArgumentError: wrong number of arguments (1 for 3)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/jdbc_postgres_test.rb:10:in `PostgresTest'
===============================================================================
E
===============================================================================
Error: test: returns jdbc version 4 on java 6(Jdbc::PostgresTest)
ArgumentError: wrong number of arguments (1 for 3)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/jdbc_postgres_test.rb:10:in `PostgresTest'
===============================================================================
E
===============================================================================
Error: test: returns jdbc version 4.1 on java 7/8(Jdbc::PostgresTest)
ArgumentError: wrong number of arguments (1 for 3)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/jdbc_postgres_test.rb:10:in `PostgresTest'
===============================================================================
E
===============================================================================
Error: test: fails on java 5(Jdbc::PostgresTest::ContextLoadDriver)
ArgumentError: wrong number of arguments (1 for 3)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/jdbc_postgres_test.rb:10:in `PostgresTest'
===============================================================================
E
===============================================================================
Error: test: on java 6(Jdbc::PostgresTest::ContextLoadDriver)
ArgumentError: wrong number of arguments (1 for 3)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/jdbc_postgres_test.rb:10:in `PostgresTest'
===============================================================================
E
===============================================================================
Error: test: on java 7(Jdbc::PostgresTest::ContextLoadDriver)
ArgumentError: wrong number of arguments (1 for 3)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/jdbc_postgres_test.rb:10:in `PostgresTest'
===============================================================================
......P
===============================================================================
Pending: pended.
test_multi_dimensional(PostgreSQLArrayTypeTest)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/array_type_test.rb:114:in `test_multi_dimensional'
111: end
112:
113: def test_multi_dimensional
=> 114: pend
115: assert_cycle([['1','2'],['2','3']])
116: end
117:
===============================================================================
...............................................................................
...............................................O
===============================================================================
omitted. [test_column(PostgresLTreeTest)]
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/ltree_test.rb:35:in `test_column'
===============================================================================
O
===============================================================================
omitted. [test_select(PostgresLTreeTest)]
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/ltree_test.rb:47:in `test_select'
===============================================================================
O
===============================================================================
omitted. [test_write(PostgresLTreeTest)]
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/ltree_test.rb:41:in `test_write'
===============================================================================
.F
===============================================================================
Failure:
test_collation(PostgresSchemaTest)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/schema_test.rb:39:in `test_collation'
36: end if ar_version('4.0') # create_schema/drop_schema added in AR 4.0
37:
38: def test_collation
=> 39: assert_equal 'en_US.UTF-8', connection.collation
40: end if ar_version('4.0') # collation added in AR 4.0
41:
42: def test_encoding
<"en_US.UTF-8">(US-ASCII) expected but was
<"C">(UTF-8)
diff:
? en_US.UTF-8
? C
? Encoding: US -ASCII
? TF 8
===============================================================================
....................P
===============================================================================
Pending: not-implemented?!
test_conversion_with_boolean_relation(PostgresTypeConversionTest)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/native_types_test.rb:132:in `test_conversion_with_boolean_relation'
129: end
130:
131: def test_conversion_with_boolean_relation
=> 132: pend 'not-implemented?!'
133: end
134:
135: end
===============================================================================
...............................E, [2014-11-09T12:34:21.866000 #79957] ERROR -- : ActiveRecord::JDBCError: org.postgresql.util.PSQLException: ERROR: null value in column "phone" violates not-null constraint
Detail: Failing row contains (1, null, null).: INSERT INTO "people" DEFAULT VALUES RETURNING "id"
................................................
...............................O
===============================================================================
not supported on AR >= 4.0 [test_exec_insert_deprecated_extension(PostgresSimpleTest)]
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/simple.rb:955:in `test_exec_insert_deprecated_extension'
===============================================================================
........
.
.........................O
===============================================================================
not supported on AR >= 4.0 [test_raw_delete_bind_param_with_q_mark_deprecated(PostgresSimpleTest)]
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/simple.rb:848:in `test_raw_delete_bind_param_with_q_mark_deprecated'
===============================================================================
.O
===============================================================================
not supported on AR >= 4.0 [test_raw_insert_bind_param_with_q_mark_deprecated(PostgresSimpleTest)]
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/simple.rb:763:in `test_raw_insert_bind_param_with_q_mark_deprecated'
===============================================================================
.O
===============================================================================
not supported on AR >= 4.0 [test_raw_update_bind_param_with_q_mark_deprecated(PostgresSimpleTest)]
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/simple.rb:805:in `test_raw_update_bind_param_with_q_mark_deprecated'
===============================================================================
.....................................P
===============================================================================
Pending: seems to fail with MRI the same way as with JRuby!
test_has_many_select_rows_with_relation(PostgresHasManyThroughTest)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/has_many_through_test_methods.rb:57:in `test_has_many_select_rows_with_relation'
54: connection = ActiveRecord::Base.connection
55: groups = role.reload.permission_groups.select('right_id')
56:
=> 57: pend "seems to fail with MRI the same way as with JRuby!" if ar_version('4.0')
58:
59: if ar_version('3.1')
60: assert_equal [ r1.id, r2.id ], connection.select_values(groups)
===============================================================================
...........
Finished in 22.767 seconds.
364 tests, 792 assertions, 1 failures, 6 errors, 3 pendings, 7 omissions, 0 notifications
98.8796% passed
15.99 tests/s, 34.79 assertions/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment