|
@@ 86-96 (lines=11) @@
|
| 83 |
|
$this->assertEquals(1, $stmt->rowCount()); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
public function testPrepareWithDbalTypes() |
| 87 |
|
{ |
| 88 |
|
$sql = "INSERT INTO write_table (test_int, test_string) VALUES (?, ?)"; |
| 89 |
|
$stmt = $this->_conn->prepare($sql); |
| 90 |
|
|
| 91 |
|
$stmt->bindValue(1, 1, Type::getType('integer')); |
| 92 |
|
$stmt->bindValue(2, "foo", Type::getType('string')); |
| 93 |
|
$stmt->execute(); |
| 94 |
|
|
| 95 |
|
$this->assertEquals(1, $stmt->rowCount()); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
public function testPrepareWithDbalTypeNames() |
| 99 |
|
{ |
|
@@ 98-108 (lines=11) @@
|
| 95 |
|
$this->assertEquals(1, $stmt->rowCount()); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
public function testPrepareWithDbalTypeNames() |
| 99 |
|
{ |
| 100 |
|
$sql = "INSERT INTO write_table (test_int, test_string) VALUES (?, ?)"; |
| 101 |
|
$stmt = $this->_conn->prepare($sql); |
| 102 |
|
|
| 103 |
|
$stmt->bindValue(1, 1, 'integer'); |
| 104 |
|
$stmt->bindValue(2, "foo", 'string'); |
| 105 |
|
$stmt->execute(); |
| 106 |
|
|
| 107 |
|
$this->assertEquals(1, $stmt->rowCount()); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
public function insertRows() |
| 111 |
|
{ |