|
@ -21,7 +21,8 @@ class MySQLiStatement extends DbStatement |
|
|
if ($this->map === null) { |
|
|
if ($this->map === null) { |
|
|
$this->mapPlaceholders(); |
|
|
$this->mapPlaceholders(); |
|
|
} |
|
|
} |
|
|
if (count($this->map) > 0) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->map) { |
|
|
if (!is_string($param) && !is_int($param)) { |
|
|
if (!is_string($param) && !is_int($param)) { |
|
|
throw new \Majestic\Exception\GeneralException('Placeholder must be an integer or string'); |
|
|
throw new \Majestic\Exception\GeneralException('Placeholder must be an integer or string'); |
|
|
} |
|
|
} |
|
@ -33,6 +34,7 @@ class MySQLiStatement extends DbStatement |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
protected function mapPlaceholders() |
|
|
protected function mapPlaceholders() |
|
|