From 3088dad5f57ba3d32046fc10b96eb70dc77b0105 Mon Sep 17 00:00:00 2001 From: pnixon Date: Sat, 19 Mar 2005 17:43:55 +0000 Subject: [PATCH] pg_exec() has been replaced with pg_query() --- lib/sql/drivers/pg/functions.php3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.5