Skip to content

Commit

Permalink
Those queries no longer silently munge columns values anymore, in rec…
Browse files Browse the repository at this point in the history
…ent MySQL versions.
  • Loading branch information
yunosh committed Jan 30, 2015
1 parent f8d811c commit 0e6ec98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions framework/Db/test/Horde/Db/Adapter/MysqlBase.php
Expand Up @@ -231,6 +231,10 @@ public function testNativeDatabaseTypes()
$this->assertEquals(array('name' => 'int', 'limit' => 11), $types['integer']);
}

/**
* @expectedException Horde_Db_Exception
* @expectedExceptionMessage QUERY FAILED: Out of range value for column 'intelligence_quotient' at row 1
*/
public function testUnabstractedDatabaseDependentTypes()
{
$this->_createTestUsersTable();
Expand Down Expand Up @@ -315,6 +319,10 @@ public function testChangeColumnPrecisionScale()
$this->assertEquals('decimal(5,2)', $afterChange->getSqlType());
}

/**
* @expectedException Horde_Db_Exception
* @expectedExceptionMessage QUERY FAILED: Out of range value for column 'foo' at row 1
*/
public function testChangeColumnUnsigned()
{
$table = $this->_conn->createTable('testings');
Expand Down

0 comments on commit 0e6ec98

Please sign in to comment.