Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-08 13:39:53 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-08 13:39:53 +0300
commitde250fbae3d8bb5f68ef816f63abd9d04e792ff2 (patch)
tree220a5be1c52ddbf138ee96e6032b6ab38ab5122d /test
parentefb51ae3f376f4ff8707158c2693d1e4cfb2d4a2 (diff)
Fix MariaDB 10.2 current_timestamp()
Fixes #13968 and fixes #13999. Closes #14177. Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/classes/TableTest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/classes/TableTest.php b/test/classes/TableTest.php
index 3c42ad7058..99e7352c6d 100644
--- a/test/classes/TableTest.php
+++ b/test/classes/TableTest.php
@@ -523,6 +523,19 @@ class TableTest extends PmaTestCase
$query
);
+ //$default_type is current_timestamp()
+ $default_type = 'current_timestamp()';
+ $query = Table::generateFieldSpec(
+ $name, $type, $length, $attribute, $collation,
+ $null, $default_type, $default_value, $extra, $comment,
+ $virtuality, $expression, $move_to
+ );
+ $this->assertEquals(
+ "`PMA_name` BOOLEAN PMA_attribute NULL DEFAULT current_timestamp() "
+ . "AUTO_INCREMENT COMMENT 'PMA_comment' FIRST",
+ $query
+ );
+
// $type is 'TIMESTAMP(3), $default_type is CURRENT_TIMESTAMP(3)
$type = 'TIMESTAMP';
$length = '3';