Ref #16653 - Fix #15994 - use lowercase compare for a safer compare

It was lowercase on MariaDB 10.4

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-02-16 18:06:39 +01:00
parent 7d3a3cd74c
commit 5e5733dcb7
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2,7 +2,7 @@
{% set attribute = submit_attribute %}
{# MariaDB has additional parentheses #}
{% elseif column_meta['Extra'] is defined
and ('on update CURRENT_TIMESTAMP' in column_meta['Extra'] or 'on update CURRENT_TIMESTAMP()' in column_meta['Extra']) %}
and ('on update current_timestamp' in column_meta['Extra'] or 'on update current_timestamp()' in column_meta['Extra']|lower) %}
{% set attribute = 'on update CURRENT_TIMESTAMP' %}
{% elseif extracted_columnspec['attribute'] is defined %}
{% set attribute = extracted_columnspec['attribute'] %}