From 8e03430acdb98d7e5fef4a48a3120b928ed3266d Mon Sep 17 00:00:00 2001 From: Malik Diarra Date: Sun, 17 Aug 2014 01:39:14 +0200 Subject: quoting tablespace name in create table command in postgresql dialect --- test/dialect/postgresql/test_compiler.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/dialect/postgresql/test_compiler.py') diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py index b439ab916..e4a8c02eb 100644 --- a/test/dialect/postgresql/test_compiler.py +++ b/test/dialect/postgresql/test_compiler.py @@ -172,6 +172,11 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): self.assert_compile(schema.CreateTable(tbl), "CREATE TABLE atable (id INTEGER)TABLESPACE sometablespace") + # testing quoting of tablespace name + tbl = Table('anothertable', m, Column("id", Integer), postgresql_tablespace = 'table') + self.assert_compile(schema.CreateTable(tbl), + 'CREATE TABLE anothertable (id INTEGER)TABLESPACE "table"') + def test_create_table_with_oids(self): m = MetaData() tbl = Table('atable', m, Column("id", Integer), postgresql_withoids = True, ) -- cgit v1.2.1