mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
fix encoding error in sql lab logging (#3424)
This commit is contained in:
committed by
Maxime Beauchemin
parent
31b7b9a6a0
commit
ad604aed09
@@ -1,3 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
@@ -27,6 +28,10 @@ class SupersetTestCase(unittest.TestCase):
|
||||
query = 'SELECT * FROM "tbname"'
|
||||
self.assertEquals({"tbname"}, self.extract_tables(query))
|
||||
|
||||
# unicode encoding
|
||||
query = 'SELECT * FROM "tb_name" WHERE city = "Lübeck"'
|
||||
self.assertEquals({"tb_name"}, self.extract_tables(query))
|
||||
|
||||
# schema
|
||||
self.assertEquals(
|
||||
{"schemaname.tbname"},
|
||||
|
||||
Reference in New Issue
Block a user