Hi,
I didn't even know there was a specific driver for mariadb. I was
using the official mysql jdbc driver. I do not know if it make any difference.
I'm moving my scripts from mysql to mariadb and I wan't to retain
what I have.
I'm using mariadb 10.0.12 and the default value for TIMESTAMP
is CURRENT_TIMESTAMP
by default
- [fsousa@imac ~]$ mysql
- Welcome to the MariaDB monitor. Commands end with ; or \g.
- Your MariaDB connection id is 17
- Server version: 10.0.12-MariaDB Homebrew
-
- Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others.
-
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
-
- MariaDB [(none)]> create database test;
- Query OK, 1 row affected (0.00 sec)
-
- MariaDB [(none)]> use test;
- Database changed
- MariaDB [test]> CREATE TABLE t (id INT, ts TIMESTAMP);
- Query OK, 0 rows affected (0.02 sec)
-
- MariaDB [test]> desc t
- -> ;
- +-------+-----------+------+-----+-------------------+-----------------------------+
- | Field | Type | Null | Key | Default | Extra |
- +-------+-----------+------+-----+-------------------+-----------------------------+
- | id | int(11) | YES | | NULL | |
- | ts | timestamp | NO | | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |
- +-------+-----------+------+-----+-------------------+-----------------------------+
- 2 rows in set (0.00 sec)
-
- MariaDB [test]>