add function to convert array to SQL

This commit is contained in:
Sarah Hoffmann
2017-10-08 10:06:17 +02:00
parent 96b6a1a418
commit d72c863353
3 changed files with 23 additions and 21 deletions

View File

@@ -23,6 +23,11 @@ function getDBQuoted($s)
return "'".pg_escape_string($s)."'";
}
function getArraySQL($a)
{
return 'ARRAY['.join(',', $a).']';
}
function getPostgresVersion(&$oDB)
{
$sVersionString = $oDB->getOne('select version()');