mirror of
https://github.com/danog/ext-pq.git
synced 2024-11-26 20:04:44 +01:00
Improvements
This commit is contained in:
parent
6b853f5e9b
commit
87bfb48247
2
php_pq.h
2
php_pq.h
@ -14,7 +14,7 @@
|
||||
#ifndef PHP_PQ_H
|
||||
#define PHP_PQ_H
|
||||
|
||||
#define PHP_PQ_VERSION "2.1.10dev"
|
||||
#define PHP_PQ_VERSION "2.1.9dev"
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
# define PHP_PQ_API __declspec(dllexport)
|
||||
|
@ -165,7 +165,7 @@ zval *php_pqres_typed_zval(php_pqres_t *res, Oid typ, zval *zv)
|
||||
ZVAL_NULL(zv);
|
||||
} else {
|
||||
ZVAL_STRINGL(zv, unescaped_str, unescaped_len);
|
||||
free(unescaped_str);
|
||||
PQfreemem(unescaped_str);
|
||||
}
|
||||
break;
|
||||
case PHP_PQ_OID_INT8:
|
||||
|
@ -25,10 +25,10 @@ typedef enum php_pqres_fetch {
|
||||
#define PHP_PQRES_CONV_BOOL 0x0001
|
||||
#define PHP_PQRES_CONV_INT 0x0002
|
||||
#define PHP_PQRES_CONV_FLOAT 0x0004
|
||||
#define PHP_PQRES_CONV_BYTEA 0x0008
|
||||
#define PHP_PQRES_CONV_SCALAR 0x000f
|
||||
#define PHP_PQRES_CONV_ARRAY 0x0010
|
||||
#define PHP_PQRES_CONV_DATETIME 0x0020
|
||||
#define PHP_PQRES_CONV_BYTEA 0x0030
|
||||
#define PHP_PQRES_CONV_JSON 0x0100
|
||||
#define PHP_PQRES_CONV_ALL 0xffff
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user