@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | */ |
| 8 | 8 | class qb |
| 9 | 9 | { |
| 10 | - const DRIVER_MYSQL = 0; |
|
| 10 | + const DRIVER_MYSQL = 0; |
|
| 11 | 11 | |
| 12 | 12 | private $_conditions = array(); |
| 13 | 13 | private $_table_names = array(); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | public $limit = 100; |
| 22 | 22 | public $limit_offset = -1; |
| 23 | 23 | |
| 24 | - public static $engine = qb::MYSQL; |
|
| 24 | + public static $engine = qb::MYSQL; |
|
| 25 | 25 | public static $default_limit = 100; |
| 26 | 26 | |
| 27 | 27 | public function __construct() |
@@ -240,10 +240,10 @@ discard block |
||
| 240 | 240 | switch ($this->_write_field_types[$d]) { |
| 241 | 241 | case 0: |
| 242 | 242 | $t .= "'".$this->_write_values[$d]."'"; |
| 243 | - break; |
|
| 244 | - default: |
|
| 243 | + break; |
|
| 244 | + default: |
|
| 245 | 245 | $t .= $this->_write_values[$d]; |
| 246 | - } |
|
| 246 | + } |
|
| 247 | 247 | $updates[] = $t; |
| 248 | 248 | } |
| 249 | 249 | $update_fields = implode(', ', $updates); |
@@ -272,10 +272,10 @@ discard block |
||
| 272 | 272 | switch ($this->_write_field_types[$d]) { |
| 273 | 273 | case 0: |
| 274 | 274 | $values[] = "'".$this->_write_values[$d]."'"; |
| 275 | - break; |
|
| 275 | + break; |
|
| 276 | 276 | default: |
| 277 | 277 | $values[] = $this->_write_values[$d]; |
| 278 | - } |
|
| 278 | + } |
|
| 279 | 279 | } |
| 280 | 280 | $string = sprintf('insert into %1$s (%2$s) values(%3$s)', $table, $fields, implode(', ', $values)); |
| 281 | 281 | |