Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug Fix: PDO parameter name

  • Loading branch information...
commit 64cd2ec48050af3d3c2c8edb70939497f633091e 1 parent bf66ffa
@c9s authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  package.ini
  2. +1 −1  src/SQLBuilder/QueryBuilder.php
View
2  package.ini
@@ -1,6 +1,6 @@
[package]
name = SQLBuilder
-version = 1.2.7
+version = 1.2.8
desc = SQL Builder
author = Yo-An Lin <cornelius.howl@gmail.com>
channel = pear.corneltek.com
View
2  src/SQLBuilder/QueryBuilder.php
@@ -645,7 +645,7 @@ public function getVars()
public function setPlaceHolderVar($key,$value)
{
if( $this->driver->placeholder && $this->driver->placeholder === 'named' ) {
- $key = str_replace( array('.') , '_' , $key );
+ $key = preg_replace('#\W+#','_', $key );
// a basic counter to avoid key confliction.
$i = 1;
while( isset($this->vars[':' . $key]) ) {
Please sign in to comment.
Something went wrong with that request. Please try again.