Fix syntax error postgresql (#387)

This commit is contained in:
Sam Manzi 2017-05-05 16:10:09 +10:00 committed by GitHub
parent d284ace4ed
commit 38db06f931

View File

@ -58,7 +58,7 @@ class Postgresql:
self.__connection.autocommit = True
self.__cursor = self.__connection.cursor()
locale = os.environ.get('LANG', 'en_US.utf8')
self.execute("DROP COLLTAION IF EXISTS glocale")
self.execute("DROP COLLATION IF EXISTS glocale")
self.execute("CREATE COLLATION glocale (LOCALE = '%s')" % locale)
def _hack_query(self, query):