X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2a784fa3d4533d11e3227f868085dcee5a9870c6..4e99f8a3408d59f5c6bf8d934fda7bb3726f2da2:/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()');