+
+ if (query_offset) {
+ /* sizeof() includes the terminating null byte, so no need for spaces in the string literals */
+ *query_offset = sizeof("DECLARE")
+ + (name_len + 1)
+ + ((flags & PHP_PQ_DECLARE_BINARY) ? sizeof("BINARY") : 1)
+ + ((flags & PHP_PQ_DECLARE_INSENSITIVE) ? sizeof("INSENSITIVE") : 1)
+ + ((flags & PHP_PQ_DECLARE_NO_SCROLL) ? sizeof("NO SCROLL") :
+ (flags & PHP_PQ_DECLARE_SCROLL) ? sizeof("SCROLL") : 1)
+ + sizeof("CURSOR")
+ + ((flags & PHP_PQ_DECLARE_WITH_HOLD) ? sizeof("WITH HOLD") : 1)
+ + sizeof("FOR");
+ }
+