projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
typo
[m6w6/ext-pq]
/
src
/
php_pqconn.c
diff --git
a/src/php_pqconn.c
b/src/php_pqconn.c
index dedd1f4c4a41701e59ce6ed05a820dbd9eeb7a8f..c4d6c806341de53295bfec4bc1a2578144a732be 100644
(file)
--- a/
src/php_pqconn.c
+++ b/
src/php_pqconn.c
@@
-219,7
+219,7
@@
static void php_pqconn_object_write_encoding(zval *object, void *o, zval *value
}
if (0 > PQsetClientEncoding(obj->intern->conn, Z_STRVAL_P(zenc))) {
}
if (0 > PQsetClientEncoding(obj->intern->conn, Z_STRVAL_P(zenc))) {
-
zend
_error(E_NOTICE, "Unrecognized encoding '%s'", Z_STRVAL_P(zenc));
+
php
_error(E_NOTICE, "Unrecognized encoding '%s'", Z_STRVAL_P(zenc));
}
if (zenc != value) {
}
if (zenc != value) {
@@
-372,7
+372,7
@@
static void php_pqconn_object_write_def_fetch_type(zval *object, void *o, zval *
}
}
}
}
- obj->intern->default_fetch_type = Z_LVAL_P(zft) & 0x
2
; /* two bits only */
+ obj->intern->default_fetch_type = Z_LVAL_P(zft) & 0x
3
; /* two bits only */
if (zft != value) {
zval_ptr_dtor(&zft);
if (zft != value) {
zval_ptr_dtor(&zft);
@@
-402,7
+402,7
@@
static void php_pqconn_object_write_def_txn_isolation(zval *object, void *o, zva
}
}
}
}
- obj->intern->default_txn_isolation = Z_LVAL_P(zti) & 0x
2
; /* two bits only */
+ obj->intern->default_txn_isolation = Z_LVAL_P(zti) & 0x
3
; /* two bits only */
if (zti != value) {
zval_ptr_dtor(&zti);
if (zti != value) {
zval_ptr_dtor(&zti);