From b7670459b9549ad6dcca2398580165e54b09b92d Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Thu, 23 Aug 2007 10:16:51 +0000 Subject: Add "server=" feature to MySQL and PostgreSQL lookups. --- test/scripts/9100-MySQL/9100 | 4 ++++ test/scripts/9200-PostgreSQL/9200 | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'test/scripts') 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: 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: -- cgit v1.2.3