| 1 | <?php |
||
| 11 | class SQLException extends RuntimeException |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $sql SQL statement (with ":name" placeholders) |
||
| 15 | * @param array $params map of parameter name/value pairs (to bind against placeholders in the statement) |
||
| 16 | * @param string $message |
||
| 17 | * @param int $code |
||
| 18 | * @param Exception|null $previous |
||
| 19 | */ |
||
| 20 | 1 | public function __construct($sql, $params = [], $message = 'SQL Error', $code = 0, Exception $previous = null) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $sql |
||
| 27 | * @param array $params |
||
| 28 | * |
||
| 29 | * @return string SQL with emulated prepare (for diagnostic purposes only) |
||
| 30 | */ |
||
| 31 | 1 | private function emulatedPrepare($sql, array $params) |
|
| 43 | } |
||
| 44 |