Skip to content

Commit

Permalink
MySQL allows precision to be specified for DATETIME, TIME type fields…
Browse files Browse the repository at this point in the history
… too

Fix #12814

Ref : http://dev.mysql.com/doc/refman/5.7/en/fractional-seconds.html

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
  • Loading branch information
devenbansod committed Dec 15, 2016
1 parent 128b027 commit 352a5d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions js/rte.js
Expand Up @@ -792,8 +792,6 @@ RTE.ROUTINE = {
// Process for parameter length
switch ($type.val()) {
case 'DATE':
case 'DATETIME':
case 'TIME':
case 'TINYBLOB':
case 'TINYTEXT':
case 'BLOB':
Expand Down
2 changes: 1 addition & 1 deletion libraries/rte/rte_routines.lib.php
Expand Up @@ -1161,7 +1161,7 @@ function PMA_RTN_getQueryFromRequest()
}
if ($item_param_length[$i] != ''
&& !preg_match(
'@^(DATE|DATETIME|TIME|TINYBLOB|TINYTEXT|BLOB|TEXT|'
'@^(DATE|TINYBLOB|TINYTEXT|BLOB|TEXT|'
. 'MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|'
. 'SERIAL|BOOLEAN)$@i',
$item_param_type[$i]
Expand Down

0 comments on commit 352a5d7

Please sign in to comment.