We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbf9e8b + 7a6ec6b commit 00cd384Copy full SHA for 00cd384
src/PDO.class.php
@@ -245,7 +245,7 @@ public function iterator($query, $params = null, $fetchMode = PDO::FETCH_ASSOC)
245
$query = trim($query);
246
$rawStatement = explode("", $query);
247
$this->Init($query, $params, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));
248
- $statement = strtolower($rawStatement[0]);
+ $statement = strtolower(trim($rawStatement[0]));
249
if ($statement === 'select' || $statement === 'show' || $statement === 'call' || $statement === 'describe') {
250
return new PDOIterator($this->sQuery, $fetchMode);
251
} elseif ($statement === 'insert' || $statement === 'update' || $statement === 'delete') {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments