Annotation of embedaddon/php/ext/pgsql/tests/10pg_convert.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: PostgreSQL pg_convert()
! 3: --SKIPIF--
! 4: <?php
! 5: include("skipif.inc");
! 6: skip_server_version('8.5dev', '>=');
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10: error_reporting(E_ALL);
! 11:
! 12: include 'config.inc';
! 13:
! 14: $db = pg_connect($conn_str);
! 15:
! 16: $fields = array('num'=>'1234', 'str'=>'AAA', 'bin'=>'BBB');
! 17: $converted = pg_convert($db, $table_name, $fields);
! 18:
! 19: var_dump($converted);
! 20: ?>
! 21: --EXPECT--
! 22: array(3) {
! 23: ["num"]=>
! 24: string(4) "1234"
! 25: ["str"]=>
! 26: string(5) "'AAA'"
! 27: ["bin"]=>
! 28: string(5) "'BBB'"
! 29: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>