/PHP-5.5/ext/pgsql/tests/ |
H A D | config.inc | 9 $table_name = "php_pgsql_test"; // test table that should be exist
|
H A D | 9999dropdb.phpt | 12 pg_query($db, "DROP TABLE ".$table_name);
|
H A D | 01createdb.phpt | 12 if (!@pg_num_rows(@pg_query($db, "SELECT * FROM ".$table_name))) 16 pg_query($db,"INSERT INTO ".$table_name." VALUES ($i, 'ABC');");
|
H A D | 03sync_query.phpt | 12 $result = pg_query($db, "SELECT * FROM ".$table_name.";"); 55 pg_num_rows(pg_query($db, "SELECT * FROM ".$table_name.";")); 56 pg_num_fields(pg_query($db, "SELECT * FROM ".$table_name.";")); 64 $result = pg_query($db, "INSERT INTO ".$table_name." VALUES (9999, 'ABC');");
|
H A D | 04async_query.phpt | 12 if (!pg_send_query($db, "SELECT * FROM ".$table_name.";")) { 44 pg_num_rows(pg_query($db, "SELECT * FROM ".$table_name.";")); 45 pg_num_fields(pg_query($db, "SELECT * FROM ".$table_name.";")); 53 if (!pg_send_query($db, "INSERT INTO ".$table_name." VALUES (8888, 'GGG');"))
|
H A D | 08escape.phpt | 46 pg_query("DELETE FROM ".$table_name." WHERE num = -9999;"); 47 $sql = "INSERT INTO ".$table_name." (num, bin) VALUES (-9999, CAST ('".$escaped_data."' AS BYTEA));… 52 $sql = "SELECT bin::bytea FROM ".$table_name." WHERE num = -9999";
|
H A D | 10pg_convert.phpt | 17 $converted = pg_convert($db, $table_name, $fields);
|
H A D | 10pg_convert_9.phpt | 18 $converted = pg_convert($db, $table_name, $fields);
|
H A D | 11pg_meta_data.phpt | 13 $meta = pg_meta_data($db, $table_name);
|
H A D | 12pg_insert.phpt | 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 D | 12pg_insert_9.phpt | 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";
|
H A D | 13pg_select_9.phpt | 20 $res = pg_select($db, $table_name, $ids) or print "Error\n"; 22 echo pg_select($db, $table_name, $ids, PGSQL_DML_STRING)."\n";
|
H A D | 14pg_update.phpt | 18 pg_update($db, $table_name, $fields, $ids) or print "Error in test 1\n"; 19 echo pg_update($db, $table_name, $fields, $ids, PGSQL_DML_STRING)."\n";
|
H A D | 14pg_update_9.phpt | 20 pg_update($db, $table_name, $fields, $ids) or print "Error in test 1\n"; 21 echo pg_update($db, $table_name, $fields, $ids, PGSQL_DML_STRING)."\n";
|
H A D | 15pg_delete.phpt | 15 if (!pg_delete($db, $table_name, $ids)) {
|
H A D | 17result.phpt | 13 $sql = "SELECT * FROM $table_name";
|
H A D | 18pg_escape_bytea_before.phpt | 17 pg_query($db, 'INSERT INTO '.$table_name.' (num, bin) VALUES (9876, E\''.$esc_image.'\');'); 18 $result = pg_query($db, 'SELECT * FROM '.$table_name.' WHERE num = 9876');
|
H A D | 18pg_escape_bytea_esc.phpt | 17 pg_query($db, 'INSERT INTO '.$table_name.' (num, bin) VALUES (9876, \''.$esc_image.'\');'); 18 $result = pg_query($db, 'SELECT * FROM '.$table_name.' WHERE num = 9876');
|
H A D | 18pg_escape_bytea_hex.phpt | 20 pg_query($db, 'INSERT INTO '.$table_name.' (num, bin) VALUES (9876, \''.$esc_image.'\');'); 21 $result = pg_query($db, 'SELECT * FROM '.$table_name.' WHERE num = 9876');
|
H A D | 25async_query_params.phpt | 17 if (!pg_send_query_params($db, "SELECT * FROM ".$table_name." WHERE num > \$1;", array(100))) { 48 pg_num_rows(pg_query_params($db, "SELECT * FROM ".$table_name." WHERE num > \$1;", array(100))); 49 pg_num_fields(pg_query_params($db, "SELECT * FROM ".$table_name." WHERE num > \$1;", array(100))); 57 …if (!pg_send_query_params($db, "INSERT INTO ".$table_name." VALUES (\$1, \$2);", array(9999, "A'BC…
|
H A D | 26async_query_prepared.phpt | 17 if (!pg_send_prepare($db, 'php_test', "SELECT * FROM ".$table_name." WHERE num > \$1;")) { 62 pg_num_rows(pg_query_params($db, "SELECT * FROM ".$table_name." WHERE num > \$1;", array(100))); 63 pg_num_fields(pg_query_params($db, "SELECT * FROM ".$table_name." WHERE num > \$1;", array(100))); 71 if (!pg_send_prepare($db, "php_test2", "INSERT INTO ".$table_name." VALUES (\$1, \$2);"))
|
H A D | 22pg_fetch_object.phpt | 19 $sql = "SELECT * FROM $table_name WHERE num = 0";
|
H A D | 23sync_query_params.phpt | 17 $result = pg_query_params($db, "SELECT * FROM ".$table_name." WHERE num > \$1;", array(100)); 40 pg_num_rows(pg_query_params($db, "SELECT * FROM ".$table_name." WHERE num > \$1;", array(100))); 41 pg_num_fields(pg_query_params($db, "SELECT * FROM ".$table_name." WHERE num > \$1;", array(100))); 49 …$result = pg_query_params($db, "INSERT INTO ".$table_name." VALUES (\$1, \$2);", array(9999, "A'BC…
|
/PHP-5.5/ext/pgsql/ |
H A D | pgsql.c | 402 ZEND_ARG_INFO(0, table_name) 409 ZEND_ARG_INFO(0, table_name) 2299 char *table_name; local 2366 new_field_table.ptr = estrdup(table_name); 2371 RETURN_STRING(table_name, 1); 3890 &pgsql_link, &table_name, &table_name_len, 5116 if (!*table_name) { 5121 src = estrdup(table_name); 5208 char *table_name; local 5436 if (!table_name) { [all …]
|
H A D | php_pgsql.h | 201 PHP_PGSQL_API int php_pgsql_meta_data(PGconn *pg_link, const char *table_name, zval *meta TSRMLS_DC… 202 PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, const zval *values, zv…
|