-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL bug affecting retrieval of all Blocks after update to Bolt 4.1 #1985
Comments
I would guess this relates to #1977 |
It's the same problem as in issue #1971: an outdated |
@LordSimal @Wieter thanks! I've updated my
to
That seems to have solved the issue. |
I'm coming back with the discussion, another point of failure in the execution of the query in MySQL, now with Laravel/Eloquent framework, I'm looking for a forced conversion of the data type in a column of a view, where by default the MEDIUMTEXT DataType is generated and its conversion for TEXT / VARCHAR / others that I didn't need to test is generating an error.
The following SQL error is thrown: |
After updating from Bolt 4.0 to 4.1, there seems to be an SQL bug affecting retrieval and listing of all blocks from the database. Individual Blocks can still be added and edited, but the listing of existing Blocks cannot be browsed. The following error is thrown:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TEXT)) ASC) dctrn_result) dctrn_table' at line 1
Details
Steps to Reproduce
Bug summary
SQL error is thrown when executing
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT b0_.id AS id_0, b0_.content_type AS content_type_1, b0_.status AS status_2, b0_.created_at AS created_at_3, b0_.modified_at AS modified_at_4, b0_.published_at AS published_at_5, b0_.depublished_at AS depublished_at_6 FROM bolt_content b0_ LEFT JOIN bolt_field b1_ ON b0_.id = b1_.content_id AND b1_.type IN ('generic', 'block', 'checkbox', 'collection', 'data', 'date', 'email', 'embed', 'file', 'filelist', 'hidden', 'html', 'image', 'imagelist', 'markdown', 'number', 'select', 'set', 'slug', 'templateselect', 'textarea', 'text', 'article', 'redactor') LEFT JOIN bolt_field_translation b2_ ON b1_.id = b2_.translatable_id WHERE b0_.content_type = ? AND b0_.status <> ? AND b1_.name = ? ORDER BY LOWER(CAST(b2_.value AS TEXT)) ASC) dctrn_result) dctrn_table
.Specifics
\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\AbstractMySQLDriver.php
on line 98Steps to reproduce
Expected result
Listing of all blocks should be accessible similar to other records added to the database.
Actual result
The following SQL error is thrown:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TEXT)) ASC) dctrn_result) dctrn_table' at line 1
The text was updated successfully, but these errors were encountered: