| @@ 369-374 (lines=6) @@ | ||
| 366 | ||
| 367 | if ($stmt instanceof SQLite3Stmt) { |
|
| 368 | if ($this->BO->getPropObject($attribute) instanceof Integer) { |
|
| 369 | if (!$ignoreClassType && $this->BO->isTableOverloaded()) { |
|
| 370 | $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER); |
|
| 371 | $stmt->bindValue(':classname', get_class($this->BO), SQLITE3_TEXT); |
|
| 372 | } else { |
|
| 373 | $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER); |
|
| 374 | } |
|
| 375 | } else { |
|
| 376 | if (!$ignoreClassType && $this->BO->isTableOverloaded()) { |
|
| 377 | $stmt->bindValue(':attribute', $value, SQLITE3_TEXT); |
|
| @@ 375-382 (lines=8) @@ | ||
| 372 | } else { |
|
| 373 | $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER); |
|
| 374 | } |
|
| 375 | } else { |
|
| 376 | if (!$ignoreClassType && $this->BO->isTableOverloaded()) { |
|
| 377 | $stmt->bindValue(':attribute', $value, SQLITE3_TEXT); |
|
| 378 | $stmt->bindValue(':classname', get_class($this->BO), SQLITE3_TEXT); |
|
| 379 | } else { |
|
| 380 | $stmt->bindValue(':attribute', $value, SQLITE3_TEXT); |
|
| 381 | } |
|
| 382 | } |
|
| 383 | ||
| 384 | $result = $stmt->execute(); |
|
| 385 | ||
| @@ 540-545 (lines=6) @@ | ||
| 537 | ||
| 538 | if ($stmt instanceof SQLite3Stmt) { |
|
| 539 | if ($this->BO->getPropObject($attribute) instanceof Integer) { |
|
| 540 | if ($this->BO->isTableOverloaded()) { |
|
| 541 | $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER); |
|
| 542 | $stmt->bindValue(':classname', get_class($this->BO), SQLITE3_TEXT); |
|
| 543 | } else { |
|
| 544 | $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER); |
|
| 545 | } |
|
| 546 | } else { |
|
| 547 | if ($this->BO->isTableOverloaded()) { |
|
| 548 | $stmt->bindValue(':attribute', $value, SQLITE3_TEXT); |
|
| @@ 546-553 (lines=8) @@ | ||
| 543 | } else { |
|
| 544 | $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER); |
|
| 545 | } |
|
| 546 | } else { |
|
| 547 | if ($this->BO->isTableOverloaded()) { |
|
| 548 | $stmt->bindValue(':attribute', $value, SQLITE3_TEXT); |
|
| 549 | $stmt->bindValue(':classname', get_class($this->BO), SQLITE3_TEXT); |
|
| 550 | } else { |
|
| 551 | $stmt->bindValue(':attribute', $value, SQLITE3_TEXT); |
|
| 552 | } |
|
| 553 | } |
|
| 554 | ||
| 555 | $result = $stmt->execute(); |
|
| 556 | ||