File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ Database support
3030Development
3131-----------
3232To test the Postgres/ODBC support do the following (on OS X):
33- 1 . ` docker run -P -d postgres ` to get a PostgreSQL server running
33+ 1 . ` docker run -P -d postgres:12.1 ` to get a PostgreSQL server running
34342 . ` brew install psqlodbc sqliteodbc `
35353 . `` POSTGRES_SERVER=localhost POSTGRES_PORT=32768 POSTGRES_USERNAME=postgres POSTGRES_PASSWORD= RUST_BACKTRACE=1 POSTGRES_DRIVER=`brew --prefix psqlodbc`/lib/psqlodbca.so SQLITE_DRIVER=`brew --prefix sqliteodbc`/lib/libsqlite3odbc-0.9996.dylib cargo test -- --nocapture ``
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ fn main() {
3232 pg:: connect ( & opt)
3333 } {
3434 Ok ( results) => {
35- println ! ( "Success {:?}" , results) ;
35+ if opt. sql_query . is_none ( ) {
36+ println ! ( "Success" ) ;
37+ } else {
38+ println ! ( "Success {:?}" , results) ;
39+ }
3640 std:: process:: exit ( exitcode:: OK ) ;
3741 }
3842 Err ( dberror) => match dberror. kind {
You can’t perform that action at this time.
0 commit comments