From: Chris Wright Date: Wed, 3 Dec 2014 16:18:28 +0000 (+0000) Subject: Make declare string template match generated string X-Git-Tag: v0.6.0RC1~7^2~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3b834b8d3fef6fca372a151e29d6f944eee9e9e3;p=m6w6%2Fext-pq Make declare string template match generated string --- diff --git a/src/php_pqcur.c b/src/php_pqcur.c index 1ff10da..2bc7821 100644 --- a/src/php_pqcur.c +++ b/src/php_pqcur.c @@ -165,7 +165,7 @@ static void php_pqcur_object_read_connection(zval *object, void *o, zval *return char *php_pqcur_declare_str(const char *name_str, size_t name_len, unsigned flags, const char *query_str, size_t query_len) { - size_t decl_len = name_len + query_len + sizeof("DECLARE BINARY INSENSITIVE NO SCROLL CURSOR WITHOUT HOLD FOR "); + size_t decl_len = name_len + query_len + sizeof("DECLARE BINARY INSENSITIVE NO SCROLL CURSOR WITH HOLD FOR "); char *decl_str; decl_str = emalloc(decl_len);