Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ee04134

Browse files
author
narratones
authored
Update PDO.class.php
Signle quote
1 parent 20670f9 commit ee04134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/PDO.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function query($query, $params = null, $fetchMode = PDO::FETCH_ASSOC)
223223
$rawStatement = explode("", $query);
224224
$this->Init($query, $params);
225225
$statement = strtolower($rawStatement[0]);
226-
if ($statement === 'select' || $statement === 'show' || $statement === "call") {
226+
if ($statement === 'select' || $statement === 'show' || $statement === 'call') {
227227
return $this->sQuery->fetchAll($fetchMode);
228228
} elseif ($statement === 'insert' || $statement === 'update' || $statement === 'delete') {
229229
return $this->sQuery->rowCount();
@@ -245,7 +245,7 @@ public function iterator($query, $params = null, $fetchMode = PDO::FETCH_ASSOC)
245245
$rawStatement = explode("", $query);
246246
$this->Init($query, $params, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));
247247
$statement = strtolower($rawStatement[0]);
248-
if ($statement === 'select' || $statement === 'show' || $statement === "call") {
248+
if ($statement === 'select' || $statement === 'show' || $statement === 'call') {
249249
return new PDOIterator($this->sQuery, $fetchMode);
250250
} elseif ($statement === 'insert' || $statement === 'update' || $statement === 'delete') {
251251
return $this->sQuery->rowCount();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /