Created
March 8, 2018 21:18
-
-
Save ZurabWeb/c141a05011c4ebc90f1f30f16876aa89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Database/PDO.php b/src/Database/PDO.php | |
index 4ca507a..6fdefd8 100644 | |
--- a/src/Database/PDO.php | |
+++ b/src/Database/PDO.php | |
@@ -331,14 +331,14 @@ class PDO extends \PDO { | |
} else { | |
$i = 0; | |
$extraParams = $keys = array(); | |
- foreach ($value as $v) { | |
- $keys[] = ":{$key}_{$i}"; | |
- $extraParams[$key . '_' . $i++] = $v; | |
- } | |
- $newSql = str_replace(':' . $key, implode(', ', $keys), $newSql); | |
- $newParams += $extraParams; | |
+ // foreach ($value as $v) { | |
+ // $keys[] = ":{$key}_{$i}"; | |
+ // $extraParams[$key . '_' . $i++] = $v; | |
+ // } | |
+ $newSql = str_replace(':' . $key, '"' . implode('", "', $value) . '"', $newSql); | |
+ // $newParams += $extraParams; | |
unset($newParams[$key]); | |
- return $this->lazyQueryAdjustments($newSql, $newParams); | |
+ // return $this->lazyQueryAdjustments($newSql, $newParams); | |
} | |
} | |
return array($newSql, $newParams); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment