projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Add BYTEA unescaping support
[m6w6/ext-pq]
/
src
/
php_pqres.h
diff --git
a/src/php_pqres.h
b/src/php_pqres.h
index acc03ccabd357e5a4d536856f239c5236be4eb3b..79507fdf1fa9ca5b1aac9c77cf930e98786cedfc 100644
(file)
--- a/
src/php_pqres.h
+++ b/
src/php_pqres.h
@@
-25,6
+25,7
@@
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_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_SCALAR 0x000f
#define PHP_PQRES_CONV_ARRAY 0x0010
#define PHP_PQRES_CONV_DATETIME 0x0020
@@
-59,14
+60,6
@@
extern php_pqres_fetch_t php_pqres_fetch_type(php_pqres_t *res);
#include "php_pq_object.h"
#include "php_pqconn_event.h"
#include "php_pq_object.h"
#include "php_pqconn_event.h"
-#define PHP_PQclear(_r) do { \
- php_pqres_object_t *_o = PQresultInstanceData((_r), php_pqconn_event); \
- if (_o) { \
- php_pq_object_delref(_o); \
- } else { \
- PQclear(_r); \
- } \
-} while(0)
extern zend_class_entry *php_pqres_class_entry;
extern php_pqres_object_t *php_pqres_create_object_ex(zend_class_entry *ce, php_pqres_t *intern);
extern zend_class_entry *php_pqres_class_entry;
extern php_pqres_object_t *php_pqres_create_object_ex(zend_class_entry *ce, php_pqres_t *intern);