- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
switch (true) {
case $result['Type'] === 'date':
$column['type'] = 'date';
$column['format'] = 'date';
break;
case preg_match('/^(datetime|timestamp)$/', $result['Type'], $matches):
$column['type'] = $result['Type'];
$column['format'] = 'datetime';
break;
case preg_match('/^decimal\((\d+),(\d+)\)/', $result['Type'], $matches):
$column['type'] = 'decimal';
$column['format'] = 'number';
$column['precision'] = $matches[2];
break;
...
Комментарии (0) RSS
Добавить комментарий