X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/eb0b3bfa4cd74ee9e425c54868a30d8859e694cd..99d52aed1b5c07459fa5c99e2eef114d612c7c0e:/lib/db.php diff --git a/lib/db.php b/lib/db.php index c3aa52bb..01fc344b 100644 --- a/lib/db.php +++ b/lib/db.php @@ -2,6 +2,7 @@ require_once('DB.php'); + function &getDB($bNew = false, $bPersistent = false) { // Get the database object @@ -22,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()');