diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2014-02-16 12:22:52 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2014-02-16 14:11:21 +0900 |
commit | 56854511d8f046d49cd34666764b37698d961431 (patch) | |
tree | c635621560fdd56dcf9b34de1b471a84efe59d4f /ext/pgsql/php_pgsql.h | |
parent | 53daf94f28d562ff5f9d3d809448ee8188b16751 (diff) | |
download | php-git-56854511d8f046d49cd34666764b37698d961431.tar.gz |
EXPERIMENTAL flags for pg_select/pg_insert/pg_update/pg_delete are removed.
Use string escape for exotic types that allows to handle any data types. i.e. Array, JSON, JSONB, etc will work.
Add escape only query for better performance which removes meta data look up. Limitations forced by pg_convert() can be avoided with this. PGSQL_DML_ESCAPE constant is added for it.
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r-- | ext/pgsql/php_pgsql.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index 46b440d723..4e0eca808a 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -199,6 +199,7 @@ PHP_FUNCTION(pg_select); #define PGSQL_DML_EXEC (1<<9) /* Execute query */ #define PGSQL_DML_ASYNC (1<<10) /* Do async query */ #define PGSQL_DML_STRING (1<<11) /* Return query string */ +#define PGSQL_DML_ESCAPE (1<<12) /* No convert, but escape only */ /* exported functions */ PHP_PGSQL_API int php_pgsql_meta_data(PGconn *pg_link, const char *table_name, zval *meta TSRMLS_DC); |