1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 09:18:02 +01:00

Make declare string template match generated string

This commit is contained in:
Chris Wright 2014-12-03 16:18:28 +00:00
parent db9b923fd2
commit 3b834b8d3f

View File

@ -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) 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; char *decl_str;
decl_str = emalloc(decl_len); decl_str = emalloc(decl_len);