Author: jure
Date: Tue Feb 19 14:53:22 2013
New Revision: 1447742

URL: http://svn.apache.org/r1447742
Log:
Don't prefix custom (3rd party plugin) tables when running in global 
environment. Also fixes failing test cases after sync merge from trunk 
(r1447714)


Modified:
    
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py

Modified: 
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py?rev=1447742&r1=1447741&r2=1447742&view=diff
==============================================================================
--- 
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
 (original)
+++ 
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
 Tue Feb 19 14:53:22 2013
@@ -248,7 +248,7 @@ class BloodhoundProductSQLTranslate(obje
         return sql
 
     def _prefixed_table_entity_name(self, tablename):
-        return "%s_%s" % (self._product_prefix, tablename)
+        return "%s_%s" % (self._product_prefix, tablename) if 
self._product_prefix else tablename
 
     def _prefixed_table_view_sql(self, name, alias):
         return '(SELECT * FROM %s) AS %s' % 
(self._prefixed_table_entity_name(name),


Reply via email to