Skip to content

Commit d3fe9b1

Browse files
committed
Require libcouchbase 2.9.5
Change-Id: I0bb2323edea3a1528038fe613a9c7385d865a41e Reviewed-on: http://review.couchbase.org/99890 Tested-by: Build Bot <[email protected]> Reviewed-by: Sergey Avseyev <[email protected]>
1 parent d835a18 commit d3fe9b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ if test "$PHP_COUCHBASE" != "no"; then
2424
libcouchbase.a should be in <libcouchbase-dir>/lib)
2525
fi
2626

27-
AC_MSG_CHECKING([for libcouchbase version >= 2.9.2])
27+
AC_MSG_CHECKING([for libcouchbase version >= 2.9.5])
2828
LCB_VERSION=$($EGREP "define LCB_VERSION " $LIBCOUCHBASE_DIR/include/libcouchbase/configuration.h | $SED -e 's/[[^0-9x]]//g')
2929
AC_MSG_RESULT([$LCB_VERSION])
3030
if test "x$LCB_VERSION" = "x0x000000"; then
3131
AC_MSG_ERROR([seems like libcouchbase is not installed from official tarball or git clone. Do not use github tags to download releases.])
3232
fi
33-
if test $(printf %d $LCB_VERSION) -lt $(printf %d 0x020902); then
34-
AC_MSG_ERROR([libcouchbase greater or equal to 2.9.2 required])
33+
if test $(printf %d $LCB_VERSION) -lt $(printf %d 0x020905); then
34+
AC_MSG_ERROR([libcouchbase greater or equal to 2.9.5 required])
3535
fi
3636

3737
PHP_ADD_INCLUDE($LIBCOUCHBASE_DIR/include)

src/couchbase/bucket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ PHP_METHOD(Bucket, query)
357357
RETURN_NULL();
358358
}
359359
smart_str_0(&buf);
360-
cmd.cmdflags |= LCB_CMDN1QL_F_CBASQUERY;
360+
cmd.cmdflags |= LCB_CMDN1QL_F_ANALYTICSQUERY;
361361
PCBC_SMARTSTR_SET(buf, cmd.query, cmd.nquery);
362362
pcbc_log(LOGARGS(obj, TRACE), "ANALYTICS: " LCB_LOG_SPEC("%.*s"),
363363
lcb_is_redacting_logs(obj->conn->lcb) ? LCB_LOG_UD_OTAG : "", PCBC_SMARTSTR_TRACE(buf),

0 commit comments

Comments
 (0)