[DBIx-Class-Devel] [dbsrgits/dbix-class-schema-loader] Handle current_timestamp() from MariaDB DESCRIBE (#23)

Martin Renvoize notifications at github.com
Fri Apr 3 08:00:01 GMT 2020


At some point, MariaDB started outputing 'current_timestamp()' in the
default field when DESCRIBE is called on the table. This is a change
from 'CURRENT_TIMESTAMP' in mysql and older versions of mariadb.  As
such, our equality match started to fail and resulting schema dumps
produced `current_timestamp()` instead of `\"current_timestamp"`

I wasn't sure where to add a test for this.. if you guide me as to where I'm happy to add one.
You can view, comment on, or merge this pull request online at:

  https://github.com/dbsrgits/dbix-class-schema-loader/pull/23

-- Commit Summary --

  * Handle current_timestamp() from MariaDB DESCRIBE

-- File Changes --

    M lib/DBIx/Class/Schema/Loader/DBI/mysql.pm (2)

-- Patch Links --

https://github.com/dbsrgits/dbix-class-schema-loader/pull/23.patch
https://github.com/dbsrgits/dbix-class-schema-loader/pull/23.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class-schema-loader/pull/23
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20200403/920af790/attachment.htm>


More information about the DBIx-Class-Devel mailing list