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
30
30
Development
31
31
-----------
32
32
To 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
34
34
2 . ` brew install psqlodbc sqliteodbc `
35
35
3 . `` 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() {
32
32
pg:: connect ( & opt)
33
33
} {
34
34
Ok ( results) => {
35
- println ! ( "Success {:?}" , results) ;
35
+ if opt. sql_query . is_none ( ) {
36
+ println ! ( "Success" ) ;
37
+ } else {
38
+ println ! ( "Success {:?}" , results) ;
39
+ }
36
40
std:: process:: exit ( exitcode:: OK ) ;
37
41
}
38
42
Err ( dberror) => match dberror. kind {
You can’t perform that action at this time.
0 commit comments