| @@ 37-45 (lines=9) @@ | ||
| 34 | $this->_conn->exec($this->_conn->getDatabasePlatform()->getTruncateTableSQL('blob_table')); |
|
| 35 | } |
|
| 36 | ||
| 37 | public function testInsert() |
|
| 38 | { |
|
| 39 | $ret = $this->_conn->insert( |
|
| 40 | 'blob_table', |
|
| 41 | array('id' => 1, 'clobfield' => 'test', 'blobfield' => 'test', 'binaryfield' => 'test'), |
|
| 42 | array(\PDO::PARAM_INT, \PDO::PARAM_STR, \PDO::PARAM_LOB, \PDO::PARAM_LOB) |
|
| 43 | ); |
|
| 44 | self::assertEquals(1, $ret); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function testSelect() |
|
| 48 | { |
|
| @@ 47-56 (lines=10) @@ | ||
| 44 | self::assertEquals(1, $ret); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function testSelect() |
|
| 48 | { |
|
| 49 | $this->_conn->insert( |
|
| 50 | 'blob_table', |
|
| 51 | array('id' => 1, 'clobfield' => 'test', 'blobfield' => 'test', 'binaryfield' => 'test'), |
|
| 52 | array(\PDO::PARAM_INT, \PDO::PARAM_STR, \PDO::PARAM_LOB, \PDO::PARAM_LOB) |
|
| 53 | ); |
|
| 54 | ||
| 55 | $this->assertBlobContains('test'); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function testUpdate() |
|
| 59 | { |
|