$query = new Select();
var_dump($query->getSqlString());
数据库使用PGSQL时,$query->getSqlString()执行正常,而数据库使用mysql时,$query->getSqlString()发生错误Attempting to quote a value without specific driver level support can introduce security vulnerabilities in a production environment
使用以下方式解决问题
$sql = new Sql($dbAdapter);
var_dump($sql->getSqlStringForSqlObject($query));
时间: 2025-01-07 18:13:04