Пример #1
0
 private function fetchAll($schemaName, $tableName, $columns)
 {
     // temporary fix of client charset handling
     $columnsSql = array_map(function ($column) {
         return sprintf('BASE64_ENCODE("%s") AS "%s"', $column, $column);
     }, $columns);
     $sql = sprintf("SELECT %s FROM \"%s\".\"%s\"", implode(', ', $columnsSql), $schemaName, $tableName);
     return array_map(function ($row) {
         return array_map(function ($column) {
             return base64_decode($column);
         }, array_values($row));
     }, $this->connection->fetchAll($sql));
 }
Пример #2
0
 protected function quoteIdentifier($value)
 {
     return $this->connection->quoteIdentifier($value);
 }