Home
last modified time | relevance | path

Searched refs:pg_insert (Results 1 – 19 of 19) sorted by relevance

/PHP-8.0/ext/pgsql/tests/
H A Dbug77047.phpt2 Bug #77047 pg_insert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
20 pg_insert($db, "bug77047", array("t" => "13:31"));
21 pg_insert($db, "bug77047", array("t" => "13:31:13"));
22 pg_insert($db, "bug77047", array("t" => "1:2:3"));
23 pg_insert($db, "bug77047", array("t" => "xyz"));
24 pg_insert($db, "bug77047", array("t" => NULL));
25 pg_insert($db, "bug77047", array("t" => ""));
34 Notice: pg_insert(): Expects NULL or string for PostgreSQL time field (t) in %s on line %d
H A D12pg_insert_9.phpt2 PostgreSQL pg_insert() (9.0+)
19 pg_insert($db, $table_name, $fields) or print "Error in test 1\n";
20 echo pg_insert($db, $table_name, $fields, PGSQL_DML_STRING)."\n";
21 echo pg_insert($db, $table_name, $fields, PGSQL_DML_STRING|PGSQL_DML_ESCAPE)."\n";
22 var_dump( pg_insert($db, $table_name, $fields, PGSQL_DML_EXEC) ); // Return resource
26 $converted = pg_insert($db, $table_name, [5 => 'AAA']);
31 $converted = pg_insert($db, $table_name, ['AAA']);
36 $converted = pg_insert($db, $table_name, ['num' => []]);
41 $converted = pg_insert($db, $table_name, ['num' => new stdClass()]);
46 $converted = pg_insert($db, $table_name, ['num' => $db]);
H A Dpg_insert_002.phpt2 PostgreSQL pg_insert() - test for CVE-2015-1532
14 var_dump(pg_insert($conn, $table, array('id' => 1, 'id2' => 1)));
22 pg_insert(): Argument #2 ($table_name) cannot be empty
24 Warning: pg_insert(): The table name must be specified in %s on line %d
27 Warning: pg_insert(): The table name must be specified in %s on line %d
H A Dpg_delete_001.phpt17 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1));
18 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
19 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
20 pg_insert($conn, 'foo', array('id' => 3, 'id2' => 3));
22 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 1));
23 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2));
24 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
25 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
H A Dpg_insert_001.phpt16 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1));
18 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2));
20 var_dump(pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING));
29 Warning: pg_insert(): Table 'foo' doesn't exists in %s on line %d
H A D12pg_insert.phpt2 PostgreSQL pg_insert()
17 pg_insert($db, $table_name, $fields) or print "Error in test 1\n";
18 echo pg_insert($db, $table_name, $fields, PGSQL_DML_STRING)."\n";
H A Dbug68638.phpt16 pg_insert($conn,$table, array('id' => 1, 'value' => 1.2));
17 pg_insert($conn,$table, array('id' => 2, 'value' => 10));
18 pg_insert($conn,$table, array('id' => 3, 'value' => 15));
H A Dgh8253.phpt2 pg_insert() fails for references
18 pg_insert($db, "gh8253", $a);
H A D80_bug39971.phpt2 Bug #39971 (8.0+) (pg_insert/pg_update do not allow now() to be used for timestamp fields)
20 pg_insert($dbh, 'php_test', $values);
H A D80_bug42783.phpt2 Bug #42783 (pg_insert() does not support an empty value array)
19 pg_insert($dbh, 'php_test', array());
H A Dbug47199.phpt17 pg_insert($dbh, $tbl_name, array('null_field' => null, 'not_null_field' => 1));
18 pg_insert($dbh, $tbl_name, array('null_field' => null, 'not_null_field' => 2));
H A Dpg_update_001.phpt18 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1));
19 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2));
H A Dbug71998.phpt2 Bug #71998 Function pg_insert does not insert when column type = inet
58 $r = @pg_insert($db, 'tmp_statistics', $data);
H A D10pg_convert_json_array.phpt23 if (!pg_insert($db, $table_name_92, $fields)) {
/PHP-8.0/ext/pgsql/
H A Dphp_pgsql.h158 PHP_FUNCTION(pg_insert);
H A Dpgsql_arginfo.h536 ZEND_FUNCTION(pg_insert);
653 ZEND_FE(pg_insert, arginfo_pg_insert)
H A Dpgsql.stub.php506 function pg_insert($connection, string $table_name, array $values, int $flags = PGSQL_DML_EXEC) {} function
H A Dpgsql.c5439 PHP_FUNCTION(pg_insert) in PHP_FUNCTION() argument
/PHP-8.0/
H A DNEWS382 . Fixed bug GH-8253 (pg_insert() fails for references). (cmb)

Completed in 44 milliseconds