diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-07-28 16:42:51 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-07-28 16:45:06 +0300 |
commit | e603c283cd2f275d660919372812070d80b0ee6d (patch) | |
tree | 22ba7d5550d3c1152050eaabe6343f42bdd4b33e /src | |
parent | 0966688f69ff52f197378cce4e75014a9a5674f2 (diff) | |
download | sql-parser-e603c283cd2f275d660919372812070d80b0ee6d.zip sql-parser-e603c283cd2f275d660919372812070d80b0ee6d.tar.gz sql-parser-e603c283cd2f275d660919372812070d80b0ee6d.tar.bz2 |
Removed extra space in data types.
Added comment about encoding.
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/DataType.php | 2 | ||||
-rw-r--r-- | src/Lexer.php | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Components/DataType.php b/src/Components/DataType.php index 76c9c29..99c3918 100644 --- a/src/Components/DataType.php +++ b/src/Components/DataType.php @@ -159,7 +159,7 @@ class DataType extends Component $tmp = '(' . implode(', ', $component->parameters) . ')'; } return trim( - $component->name . ' ' . $tmp . ' ' + $component->name . $tmp . ' ' . OptionsArray::build($component->options) ); } diff --git a/src/Lexer.php b/src/Lexer.php index a129dfa..719a955 100644 --- a/src/Lexer.php +++ b/src/Lexer.php @@ -34,6 +34,11 @@ namespace SqlParser { if (!defined('USE_UTF_STRINGS')) { + // NOTE: In previous versions of PHP (5.5 and older) the default + // internal encoding is "ISO-8859-1". + // All `mb_` functions must specify the correct encoding, which is + // 'UTF-8' in order to work properly. + /** * Forces usage of `UtfString` if the string is multibyte. * `UtfString` may be slower, but it gives better results. |