From 77f025454385b9f7ad23305751643835df33850b Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Fri, 10 Sep 2010 02:26:01 +0200 Subject: [PATCH] Passes unittest --- unittest/wanted-results/sql01 | 6 ++++++ unittest/wanted-results/sql03 | 3 +++ 2 files changed, 9 insertions(+) diff --git a/unittest/wanted-results/sql01 b/unittest/wanted-results/sql01 index 5cd2d5ed..3419a7ba 100644 --- a/unittest/wanted-results/sql01 +++ b/unittest/wanted-results/sql01 @@ -42,6 +42,8 @@ def 3 30 30 ### Test --debug +dburl mysql://sqlunittest:CB5A1FFFA5A@localhost:3306/sqlunittest +databasedriver mysql user sqlunittest password CB5A1FFFA5A host localhost port 3306 database sqlunittest query mysql -C --host=localhost --user=sqlunittest --port=3306 --password=CB5A1FFFA5A sqlunittest Test if --debug works Yes it does @@ -49,6 +51,8 @@ Yes it does 7 43 306 7 43 306 ### Test -r +dburl pg://nongood@127.0.0.3:2227/ +databasedriver pg user nongood password host 127.0.0.3 port 2227 database query psql -h 127.0.0.3 -U nongood -p 2227 psql: could not connect to server: Connection refused Is the server running on host "127.0.0.3" and accepting @@ -62,6 +66,8 @@ psql: could not connect to server: Connection refused Is the server running on host "127.0.0.3" and accepting TCP/IP connections on port 2227? ### Test --retries=s +dburl pg://nongood@127.0.0.3:2227/ +databasedriver pg user nongood password host 127.0.0.3 port 2227 database query psql -h 127.0.0.3 -U nongood -p 2227 psql: could not connect to server: Connection refused Is the server running on host "127.0.0.3" and accepting diff --git a/unittest/wanted-results/sql03 b/unittest/wanted-results/sql03 index d5f6feb1..417aa31e 100644 --- a/unittest/wanted-results/sql03 +++ b/unittest/wanted-results/sql03 @@ -9,6 +9,9 @@ Test if .sql/aliases with %-quoting works Yes it works ### Test cyclic alias .sql/aliases :cyclic3 is a cyclic alias +### Test alias with statement .sql/aliases +Test statement in alias +It works ### Test empty dburl Error: is not a valid DBURL