From: pnixon Date: Sat, 19 Mar 2005 17:43:55 +0000 (+0000) Subject: pg_exec() has been replaced with pg_query() X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=3088dad5f57ba3d32046fc10b96eb70dc77b0105;p=freeradius-dialup-admin.git pg_exec() has been replaced with pg_query() --- diff --git a/lib/sql/drivers/pg/functions.php3 b/lib/sql/drivers/pg/functions.php3 index f403080..3a43276 100644 --- a/lib/sql/drivers/pg/functions.php3 +++ b/lib/sql/drivers/pg/functions.php3 @@ -67,7 +67,7 @@ function da_sql_query($link,$config,$query) { if ($config[sql_debug] == 'true') print "DEBUG(SQL,PG DRIVER): Query: $query
\n"; - return @pg_exec($link,$query); + return @pg_query($link,$query); } function da_sql_num_rows($result,$config) @@ -99,7 +99,7 @@ function da_sql_affected_rows($link,$result,$config) function da_sql_list_fields($table,$link,$config) { - $res = @pg_exec($link, + $res = @pg_query($link, "select count(*) from pg_attribute where attnum > '0' and attrelid = (select oid from pg_class where relname='$table');"); if ($res){ @@ -110,7 +110,7 @@ function da_sql_list_fields($table,$link,$config) $fields[num] = $row[0]; } } - $res = @pg_exec($link, + $res = @pg_query($link, "select attname from pg_attribute where attnum > '0' and attrelid = (select oid from pg_class where relname='$table');"); if ($res)