summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/old_api.inc
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2001-12-17 00:16:48 +0000
committerYasuo Ohgaki <yohgaki@php.net>2001-12-17 00:16:48 +0000
commit9a40810c8594ebdc0958fa1ad18c235bfd8b8a03 (patch)
treeedfa3de82c9355ef479f70f12a29a7139902880b /ext/pgsql/tests/old_api.inc
parenta06a627394dc50fe1f344114a9f79c9964b11316 (diff)
downloadphp-git-9a40810c8594ebdc0958fa1ad18c235bfd8b8a03.tar.gz
Added test files
Diffstat (limited to 'ext/pgsql/tests/old_api.inc')
-rw-r--r--ext/pgsql/tests/old_api.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/pgsql/tests/old_api.inc b/ext/pgsql/tests/old_api.inc
new file mode 100644
index 0000000000..4995961831
--- /dev/null
+++ b/ext/pgsql/tests/old_api.inc
@@ -0,0 +1,26 @@
+<?php
+
+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";
+?> \ No newline at end of file