Lookups: fix mysql lookup returns for no-data "queries",
[users/heiko/exim.git] / test / scripts / 2620-Postgresql / 2620
index ae5dca130cfe01167144616526a7f066aaf5fb8c..cf45726f4f3370bb6ae080e7f150a7ab0e6cc45c 100644 (file)
@@ -3,11 +3,11 @@
 # first, populate a DB to test against
 sudo rm -fr DIR/pgsql
 perl
-system 'initdb -D DIR/pgsql/data';
+system 'DIR/bin.sys/initdb -D DIR/pgsql/data';
 ****
 sudo rm test-stdout
 background
-/usr/bin/postgres -D DIR/pgsql/data -p PORT_N -k DIR/pgsql
+DIR/bin.sys/postgres -D DIR/pgsql/data -p PORT_N -k DIR/pgsql
 ****
 sleep 1
 perl
@@ -43,6 +43,7 @@ ${lookup pgsql {servers=(DIR/pgsql/.s.PGSQL.PORT_N)/test/CALLER/:x; select name
 x
 ${lookup pgsql {SELECT name FROM them WHERE id IN ('ph10', 'aaaa');}}
 ${lookup pgsql {SELECT *    FROM them WHERE id IN ('ph10', 'aaaa');}}
+${lookup pgsql {delete from them where id='aaaa'}}
 ****
 exim -d -bh 10.0.0.0
 mail from:<a@b>