public function getEmulatedSQL($preservedStrLength = -1)
{
if (count($this->_bind) === 0) {
return (string) $this->_sql;
}
$bind = $this->_bind;
if (isset($bind[0])) {
return (string) $this->_sql;
} else {
$replaces = [];
foreach ($bind as $key => $value) {
$replaces[':' . $key] = $this->_parseBindValue($value, $preservedStrLength);
}
return (string) strtr($this->_sql, $replaces);
}
}