<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Horde Database Libraries tests fail against fail on MySQL 8.0.19 and later</title> 
  <pubDate>Wed, 08 Apr 2026 17:39:38 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/14984</link> 
  <atom:link rel="self" type="application/rss+xml" title="Horde Database Libraries tests fail against fail on MySQL 8.0.19 and later" href="https://bugs.horde.org/ticket/14984/rss" /> 
  <description>Horde Database Libraries tests fail against fail on MySQL 8.0.19 and later</description> 
 
   
   
  <item> 
   <title>The failures are:

There were 2 failures:

1) Horde_Db_A</title> 
   <description>The failures are:

There were 2 failures:

1) Horde_Db_Adapter_MysqliTest::testColumns
Failed asserting that null matches expected 10.

/tmp/autopkgtest.qBADD9/build.ebg/src/Horde_Db-2.4.0/test/Horde/Db/Adapter/MysqlBase.php:260

2) Horde_Db_Adapter_Pdo_MysqlTest::testColumns
Failed asserting that null matches expected 10.

/tmp/autopkgtest.qBADD9/build.ebg/src/Horde_Db-2.4.0/test/Horde/Db/Adapter/MysqlBase.php:260



The relevant test is:

    public function testColumns()
    {
        $col = parent::testColumns();
        $this-&gt;assertEquals(10, $col-&gt;getLimit());
        $this-&gt;assertEquals(true, $col-&gt;isUnsigned());
        $this-&gt;assertEquals(&#039;int(10) unsigned&#039;, $col-&gt;getSqlType());
    }

$col-&gt;getLimit() is expected to be, for a column defined as &quot;int(10) unsigned&quot;, 10. However, according to MySQL&#039;s release notes (https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-19.html):

&quot;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...&quot;

There are some exceptions but my understanding is that since int(10) doesn&#039;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 &quot;(10)&quot; part any more.

So the test&#039;s assumption is now wrong. It&#039;s not obvious to me if adjusting the test will leave the assumption present in other parts of production code.

Downstream bug: https://bugs.launchpad.net/ubuntu/+source/php-horde-db/+bug/1861099</description> 
   <pubDate>Tue, 28 Jan 2020 12:05:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14984#t93626</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
