You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
we have a little problem with the Database updater. The DB update wants to delete some fields. But the fields didn't exist in the table. After some debuging i find some rows with a SQL statment to fetch all fields from the INFORMATION_SCHEMA. But in this SQL we have a
``TABLE_NAME LIKE '%$strTable' and there was the error. The '%' finds the tl_news and a tmp_tl_news.
So i ask me why we have a '%'. We only want the fields from one table and not from all that have a 'tl_news' at the end of the name or is there a special case?
Hi,
we have a little problem with the Database updater. The DB update wants to delete some fields. But the fields didn't exist in the table. After some debuging i find some rows with a SQL statment to fetch all fields from the INFORMATION_SCHEMA. But in this SQL we have a
``TABLE_NAME
LIKE '%$strTable'
and there was the error. The '%' finds the tl_news and a tmp_tl_news.So i ask me why we have a '%'. We only want the fields from one table and not from all that have a 'tl_news' at the end of the name or is there a special case?
See:
https://github.com/contao/core/blob/master/system/modules/core/library/Contao/Database/Mysql.php#L142
https://github.com/contao/core/blob/master/system/modules/core/library/Contao/Database/Mysqli.php#L125
The text was updated successfully, but these errors were encountered: