Annotation of embedaddon/php/ext/pgsql/tests/98old_api.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: PostgreSQL old api
! 3: --SKIPIF--
! 4: <?php include("skipif.inc"); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: include('config.inc');
! 9:
! 10: $db = pg_connect($conn_str);
! 11: $result = pg_exec("SELECT * FROM ".$table_name);
! 12: pg_numrows($result);
! 13: pg_numfields($result);
! 14: pg_fieldname($result, 0);
! 15: pg_fieldsize($result, 0);
! 16: pg_fieldtype($result, 0);
! 17: pg_fieldprtlen($result, 0);
! 18: pg_fieldisnull($result, 0);
! 19:
! 20: pg_result($result,0,0);
! 21: $result = pg_exec("INSERT INTO ".$table_name." VALUES (7777, 'KKK')");
! 22: $oid = pg_getlastoid($result);
! 23: pg_freeresult($result);
! 24: pg_errormessage();
! 25: $result = pg_exec("UPDATE ".$table_name." SET str = 'QQQ' WHERE str like 'RGD';");
! 26: pg_cmdtuples($result);
! 27:
! 28:
! 29:
! 30: echo "OK";
! 31: ?>
! 32: --EXPECT--
! 33: OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>