incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1447742 - /incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
Date Tue, 19 Feb 2013 14:53:22 GMT
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),



Mime
View raw message