summaryrefslogtreecommitdiff
path: root/test/scripts
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2007-08-23 10:16:51 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2007-08-23 10:16:51 +0000
commitb7670459b9549ad6dcca2398580165e54b09b92d (patch)
treea697ce1627742155665310463145ff9f0bda9edb /test/scripts
parent48ed62d9a68c4e44c9fbaa6e300f88401bb32d65 (diff)
Add "server=" feature to MySQL and PostgreSQL lookups.
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/9100-MySQL/91004
-rw-r--r--test/scripts/9200-PostgreSQL/92004
2 files changed, 8 insertions, 0 deletions
diff --git a/test/scripts/9100-MySQL/9100 b/test/scripts/9100-MySQL/9100
index 3121ca950..fdf2caf9a 100644
--- a/test/scripts/9100-MySQL/9100
+++ b/test/scripts/9100-MySQL/9100
@@ -10,6 +10,10 @@ ${lookup mysql {select * from them where id='quote';}}
${lookup mysql {select * from them where id='filter';}}
${lookup mysql {select * from them where id='quote2';}}
${lookup mysql {select * from them where id='nlonly';}}
+${lookup mysql {servers=x:localhost; select name from them where id='ph10';}}
+${lookup mysql {servers=localhost:x; select name from them where id='ph10';}}
+${lookup mysql {servers=localhost/test/root/:x; select name from them where id='ph10';}}
+${lookup mysql {servers=HOST_IPV4/test/root/:localhost; select name from them where id='ph10';}}
****
exim -d -bh 10.0.0.0
mail from:<a@b>
diff --git a/test/scripts/9200-PostgreSQL/9200 b/test/scripts/9200-PostgreSQL/9200
index c4440a89e..2dfb15b95 100644
--- a/test/scripts/9200-PostgreSQL/9200
+++ b/test/scripts/9200-PostgreSQL/9200
@@ -10,6 +10,10 @@ ${lookup pgsql {select * from them where id='quote2';}}
${lookup pgsql {select * from them where id='newline';}}
${lookup pgsql {select * from them where id='tab';}}
${lookup pgsql {select * from them where name='${quote_pgsql:'stquot}';}}
+${lookup pgsql {servers=x:localhost; select name from them where id='ph10';}}
+${lookup pgsql {servers=localhost:x; select name from them where id='ph10';}}
+${lookup pgsql {servers=localhost/test/CALLER/:x; select name from them where id='ph10';}}
+${lookup pgsql {servers=(/tmp/.s.PGSQL.5432)/test/ph10/:x; select name from them where id='ph10';}}
****
exim -d -bh 10.0.0.0
mail from:<a@b>