...w PDO($dsn, $user, $pass); } catch (PDOException $e) { throw new XSException($e->getMessage()); }} 连接数据库 具体的每个类必须实现 makeDsn 来将参数转换为 dsn
...现在这俩文件权限是0755 但是连接出现 Fatal error: Uncaught [XSException] ../../../usr/local/hush/sdk/php/lib/XS.php(2177): Permission denied(C#13) thrown in /usr/local/hush/sdk/php/lib/XS.php on line 2177 chown -R www:www后则正常连接了
...bid = c.bid" /usr/local/xunsearch/sdk/php/app/59n.ini [/php] [code] [XSException] ../lib/XS.php(2202): Connection timed out(C#110) #0 ../lib/XS.php(2025): XSServer->connect() #1 ../lib/XS.php(2011): XSServer->open(8383) #2 ../lib/XS.php(342): XSServer->__construct(8383, Object(XS)) #3 ../l...
...ion __set($name, $value){ if ($this->_meta !== null) { throw new XSException('Magick property of result document is read-only'); } $this->setField($name, $value);} 魔术方法 __set 实现以对象属性方式设置文档字段值
...ypeMap[XSFieldMeta::TYPE_ID])) { if ($throw) { throw new XSException('Missing field of type ID'); } return false; } return true;} 判断该字段方案是否有效、可用 每个方案必须并且只能包含一个类型为 ID 的字段
...= pg_query($this->link, $query); if ($res === false) { throw new XSException('PgSQL ERROR: ' . pg_last_error($this->link)); } $ret = array(); while ($tmp = pg_fetch_assoc($res)) { $ret[] = $tmp; } pg_free_result($res); return $ret;} 执行 SQL 语句查询
... $res = $this->obj->query($sql); if ($res === false) { throw new XSException('MySQL ERROR(#' . $this->obj->error . '): ' . $this->obj->errno); } if (!is_object($res)) { $ret = $res; } else { $ret = array(); while ($tmp = $res->fetch_assoc()) { $ret[...
... => 2), XS_CMD_OK_DB_REBUILD); $this->_rebuild = false; } catch (XSException $e) { if ($e->getCode() !== XS_CMD_ERR_WRONGPLACE) { throw $e; } } return $this;} 中止索引重建 丢弃重建临时库的所有数据, 恢复成当前搜索库, 主要用于...
生成了索引库后,直接删除了索引文件,出现错误,怎么清空这个项目的所有数据,现在执行 [php] util/Indexer.php --source=csv changnetv8 --clean[/php] 时, 报[php][XSException] lib/XS.php(1898): DB has been rebuilding(S#407)[/php] 错误
...m['pass']}"; if (!($this->link = @pg_connect($dsn))) { throw new XSException('Error connecting to PGSQL database:' . $param['dbname'] . '.'); pg_set_error_verbosity($this->link, PGSQL_ERRORS_DEFAULT); pg_query('SET standard_conforming_strings=off'); }}