--- parser3/src/classes/memcached.C 2020/12/15 17:10:29 1.16 +++ parser3/src/classes/memcached.C 2024/09/13 04:01:22 1.18 @@ -1,7 +1,7 @@ /** @file Parser: memcached class. - Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) Authors: Ivan Poluyanov Artem Stepanov @@ -15,7 +15,7 @@ #include "pa_vbool.h" #include "pa_vmemcached.h" -volatile const char * IDENT_MEMCACHED_C="$Id: memcached.C,v 1.16 2020/12/15 17:10:29 moko Exp $"; +volatile const char * IDENT_MEMCACHED_C="$Id: memcached.C,v 1.18 2024/09/13 04:01:22 moko Exp $"; class MMemcached: public Methoded { public: // VStateless_class @@ -37,7 +37,7 @@ static void _open(Request& r, MethodPara for(HashStringValue::Iterator i(*options); i; i.next()){ if(i.key() == "skip-connect"){ connect=!i.value()->as_bool(); - } else if(Value *b=i.value()->as("bool")){ + } else if(Value *b=dynamic_cast(i.value())){ if(b->as_bool()) result << (result.is_empty() ? "--" : " --") << i.key(); } else {