You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by ju...@apache.org on 2013/02/19 15:53:22 UTC
svn commit: r1447742 -
/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
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),