summaryrefslogtreecommitdiff
path: root/tests/files
diff options
context:
space:
mode:
authorTao Wang <twang2218@gmail.com>2017-01-11 20:38:30 +1100
committerTao Wang <twang2218@gmail.com>2017-01-12 14:20:32 +1100
commitf6e9141d3131954c7576faf059ceca8a652f3dad (patch)
tree8249bcfc5763a18b208afb2c4236a2188efaf286 /tests/files
parentc92e281c19f43bbcb945b5a8c43211263ee25386 (diff)
downloadsqlparse-f6e9141d3131954c7576faf059ceca8a652f3dad.tar.gz
CLI: Add --encoding option
* Add `--encoding` option with default utf-8 * Make sure input and output are in same encoding * Add test cases Signed-off-by: Tao Wang <twang2218@gmail.com>
Diffstat (limited to 'tests/files')
-rw-r--r--tests/files/encoding_gbk.sql3
-rw-r--r--tests/files/encoding_utf8.sql3
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/files/encoding_gbk.sql b/tests/files/encoding_gbk.sql
new file mode 100644
index 0000000..a613229
--- /dev/null
+++ b/tests/files/encoding_gbk.sql
@@ -0,0 +1,3 @@
+select *
+from foo
+where bar = '不以物喜,不以己悲' \ No newline at end of file
diff --git a/tests/files/encoding_utf8.sql b/tests/files/encoding_utf8.sql
new file mode 100644
index 0000000..26e7ad4
--- /dev/null
+++ b/tests/files/encoding_utf8.sql
@@ -0,0 +1,3 @@
+select *
+from foo
+where bar = '榻愬ぉ澶у湥.銈儵銉曘儷銇洸.靷瀾頃挫殧' \ No newline at end of file