Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test fails on PostgreSQL 10 #20

Closed
xfoxfu opened this issue Jun 18, 2018 · 2 comments
Closed

test fails on PostgreSQL 10 #20

xfoxfu opened this issue Jun 18, 2018 · 2 comments

Comments

@xfoxfu
Copy link
Contributor

xfoxfu commented Jun 18, 2018

$ psql --version
psql (PostgreSQL) 10.4

$ PG_TEST_DATABASE_URL=postgres://[email protected] cargo test --features postgres
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running target/debug/deps/tests-61de74e2f6241362

running 5 tests
test nullable::nullable_enum_round_trip ... FAILED
test rename::rename_round_trip ... ok
test nullable::not_nullable_enum_round_trip ... ok
test simple::enum_round_trip ... FAILED
test simple::filter_by_enum ... FAILED

failures:

---- nullable::nullable_enum_round_trip stdout ----
	thread 'nullable::nullable_enum_round_trip' panicked at 'called `Result::unwrap()` on an `Err` value: DatabaseError(__Unknown, "column \"my_enum\" is of type my_enum but expression is of type pg_temp_7.my_enum")', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

---- simple::enum_round_trip stdout ----
	thread 'simple::enum_round_trip' panicked at 'called `Result::unwrap()` on an `Err` value: DatabaseError(__Unknown, "column \"my_enum\" is of type my_enum but expression is of type pg_temp_7.my_enum")', libcore/result.rs:945:5

---- simple::filter_by_enum stdout ----
	thread 'simple::filter_by_enum' panicked at 'called `Result::unwrap()` on an `Err` value: DatabaseError(__Unknown, "column \"my_enum\" is of type my_enum but expression is of type pg_temp_7.my_enum")', libcore/result.rs:945:5


failures:
    nullable::nullable_enum_round_trip
    simple::enum_round_trip
    simple::filter_by_enum

test result: FAILED. 2 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--lib'

I think this failure is related to behavior changes in TEMP in PostgreSQL 10.

@adwhit
Copy link
Owner

adwhit commented Jun 23, 2018

This looks like the same as #17? In travis I set RUST_TEST_THREADS=1 to get around this.

@xfoxfu
Copy link
Contributor Author

xfoxfu commented Jun 23, 2018

Yes. Thanks for your help and sorry for my disturbing.

@xfoxfu xfoxfu closed this as completed Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants