php-horde-db autopkgtests fail on MySQL 8.0.19 and later
Bug #1861099 reported by
Robie Basak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Horde |
Unknown
|
Unknown
|
|||
mysql-8.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Eoan |
Invalid
|
Undecided
|
Unassigned | ||
php-horde-db (Ubuntu) |
Fix Released
|
Undecided
|
Robie Basak | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
The errors are:
There were 2 failures:
1) Horde_Db_
Failed asserting that null matches expected 10.
/tmp/autopkgtes
2) Horde_Db_
Failed asserting that null matches expected 10.
/tmp/autopkgtes
--
Related branches
~racb/ubuntu/+source/php-horde-db:mysql-integer-column-limit
Merged
into
ubuntu/+source/php-horde-db:ubuntu/devel
at
revision 3be1db36119e8253910bed36b7d40dc9e32bc74f
- Bryce Harrington (community): Approve
- Canonical Server MOTU reviewers: Pending requested
-
Diff: 55 lines (+33/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/mysql-integer-column-limit.patch (+25/-0)
debian/patches/series (+1/-0)
Changed in php-horde-db (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Robie Basak (racb) |
Changed in php-horde-db (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in mysql-8.0 (Ubuntu): | |
status: | Triaged → Invalid |
Changed in mysql-8.0 (Ubuntu Eoan): | |
status: | Triaged → Invalid |
Changed in php-horde-db (Ubuntu Eoan): | |
status: | Triaged → Won't Fix |
To post a comment you must log in.
The relevant test is:
public function testColumns() :testColumns( );
$this- >assertEquals( 10, $col->getLimit());
$this- >assertEquals( true, $col->isUnsigne d());
$this- >assertEquals( 'int(10) unsigned', $col->getSqlTyp e());
{
$col = parent:
}
$col->getLimit() is expected to be, for a column defined as "int(10) unsigned", 10. However, according to MySQL's release notes (https:/ /dev.mysql. com/doc/ relnotes/ mysql/8. 0/en/news- 8-0-19. html):
"Display width specification for integer data types was deprecated in MySQL 8.0.17, and now statements that include data type definitions in their output no longer show the display width for integer types..."
There are some exceptions but my understanding is that since int(10) doesn't make sense for MySQL, if you define a table like that MySQL will accept it, but a data dictionary query will not return the "(10)" part any more.