Support

Akeeba Backup for Joomla!

#41269 Error while restoring an additional database. A bit value of '0' restores to '1'

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.4.8
PHP version
8.3
Akeeba Backup version
9.9.6

Latest post by nicholas on Tuesday, 29 October 2024 02:04 CDT

[email protected]

Error while restoring an additional database. A bit value of '0' restores to '1'

This occured in a database added with "Muliple Database Definitions"

An illustration of the problem is in the second attachment.(pdf)

MariaDB Versions:
Source-Server: 10.6.18-MariaDB-0ubuntu0.22.04.1 - Ubuntu 22.04
Destinaltion-Server: 10.4.32-MariaDB - Source distribution 

Both protocol-versions are: 10

Akeeba Kickstart Professional 8.0.6 was used for the restore.

This issue is problematic, because it happens completely silent.

Thankyou for having a look.

Patrick Droz
(retired software ingineer)

 

 

 

 

 

 

nicholas
Akeeba Staff
Manager

See https://stackoverflow.com/questions/8778906/fetching-bit-field-with-mysql-query for a bit more context.

The problem is that BIT fields are not supported natively in PHP. The database server returns a string, not a number, or array of booleans you'd probably expect. They need all sorts of explicit casting both to read from, and write into them.

Adding support for BIT fields would require making the database backup about 25% slower for everybody. At the same time, you are the only person who tried using a BIT field in the past 18 years. Therefore, it makes no business sense degrading the experience on hundreds thousands of backups each day just for this one site. It would make far more sense for you to use a TINYINT instead.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!