handlers.dispatch: Fix quoting in temp table naming
authorMarko Kreen <markokr@gmail.com>
Wed, 26 Oct 2011 07:47:50 +0000 (10:47 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 26 Oct 2011 07:47:50 +0000 (10:47 +0300)
python/londiste/handlers/dispatch.py

index f3965303eb1dd96226c3474b74b4e940fa3ba752..e84b089a358a42fda65d70d3ff6e537f50632a5f 100644 (file)
@@ -289,10 +289,10 @@ class BaseBulkTempLoader(BaseBulkCollectingLoader):
         # temp table name
         if USE_REAL_TABLE:
             self.temp =  self.table + "_loadertmpx"
-            self.qtemp = quote_ident(self.temp)
+            self.qtemp = quote_fqident(self.temp)
         else:
             self.temp =  self.table.replace('.', '_') + "_loadertmp"
-            self.qtemp = quote_fqident(self.temp)
+            self.qtemp = quote_ident(self.temp)
         # quoted table name
         self.qtable = quote_fqident(self.table)
         # all fields