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
I am not sure if it is important enough but anyway there are cases when query binding does not work - i.e. long field "names" like:
CONCAT(`my_long_table_alias_name`.`hex_system_name`, IF (`my_long_table_alias_name`.`hex_name` IS NULL, '', CONCAT(' (', `my_long_table_alias_name`.`hex_name`, ')')))
should be replaced with `%test%'
i.e.:
SELECT `my_long_table_alias_name`.`hex_id` AS `id`,
CONCAT(`my_long_table_alias_name`.`hex_system_name`, IF(`my_long_table_alias_name`.`hex_name` IS NULL, '',
CONCAT(' (', `my_long_table_alias_name`.`hex_name`, ')'))) AS `name`
FROM `my_test_table` AS `my_long_table_alias_name`
WHERE LOWER(CONCAT(`my_long_table_alias_name`.`hex_system_name`, IF(`my_long_table_alias_name`.`hex_name` IS NULL, '',
CONCAT(' (', `my_long_table_alias_name`.`hex_name`, ')')))) LIKE
:CONCAT(`my_long_table_alias_name`.`hex_system_name`, IF (`my_long_table_alias_name`.`hex_name` IS NULL, '', CONCAT(' (', `my_long_table_alias_name`.`hex_name`, ')'))):ESCAPE '!'
when I changed my code to generate shorter queries/table aliases it worked as excepted:
SELECT `Sa18bcd35ea`.`hex_id` AS `id`,
CONCAT(`Sa18bcd35ea`.`hex_system_name`, IFNULL(CONCAT(' (', `Sa18bcd35ea`.`hex_name`, ')'), '')) AS `name`
FROM `t_hb_example` AS `Sa18bcd35ea`
WHERE LOWER(CONCAT(`Sa18bcd35ea`.`hex_system_name`, IFNULL(CONCAT(' (', `Sa18bcd35ea`.`hex_name`, ')'), ''))) LIKE
'%test%' ESCAPE '!';
The text was updated successfully, but these errors were encountered:
I am not sure if it is important enough but anyway there are cases when query binding does not work - i.e. long field "names" like:
should be replaced with `%test%'
i.e.:
when I changed my code to generate shorter queries/table aliases it worked as excepted:
The text was updated successfully, but these errors were encountered: