I want to convert $sql->select() statement to string. I tried
$sql->getSqlStringForSqlObject($select)
and also
$select->getSqlString($this->_dbAdapter->getPlatform())
but it gives warning
Notice: Attempting to quote a value in Zend\Db\Adapter\Platform\Oracle without extension/driver support can introduce security vulnerabilities in a production environment.
I dont want to supress the warning I want to solve it.