summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/98old_api.phpt
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-05-20 00:14:46 +0000
committerMarcus Boerger <helly@php.net>2003-05-20 00:14:46 +0000
commitdaded6e633a57a499a11fb97e417d063cc803058 (patch)
tree0911a0c4dba0091bbfde6fc4a1bafbd55e8c1291 /ext/pgsql/tests/98old_api.phpt
parent4a113728053fdd17c8ab59f323c7d62881f087a1 (diff)
downloadphp-git-daded6e633a57a499a11fb97e417d063cc803058.tar.gz
Reorganized tests
Diffstat (limited to 'ext/pgsql/tests/98old_api.phpt')
-rw-r--r--ext/pgsql/tests/98old_api.phpt25
1 files changed, 24 insertions, 1 deletions
diff --git a/ext/pgsql/tests/98old_api.phpt b/ext/pgsql/tests/98old_api.phpt
index c6f8070c23..2667e097e3 100644
--- a/ext/pgsql/tests/98old_api.phpt
+++ b/ext/pgsql/tests/98old_api.phpt
@@ -4,7 +4,30 @@ PostgreSQL old api
<?php include("skipif.inc"); ?>
--FILE--
<?php
-include("old_api.inc");
+
+include('config.inc');
+
+$db = pg_connect($conn_str);
+$result = pg_exec("SELECT * FROM ".$table_name);
+pg_numrows($result);
+pg_numfields($result);
+pg_fieldname($result, 0);
+pg_fieldsize($result, $field_name);
+pg_fieldtype($result, 0);
+pg_fieldprtlen($result, 0);
+pg_fieldisnull($result, 0);
+
+pg_result($result,0,0);
+$result = pg_exec("INSERT INTO ".$table_name." VALUES (7777, 'KKK')");
+$oid = pg_getlastoid($result);
+pg_freeresult($result);
+pg_errormessage();
+$result = pg_exec("UPDATE ".$table_name." SET str = 'QQQ' WHERE str like 'RGD';");
+pg_cmdtuples($result);
+
+
+
+echo "OK";
?>
--EXPECT--
OK