Commits

Olemis Lang committed dab6189

BH Multiproduct #355 : Translating queries executed via BloodhoundIterableCursor.cursor ... (errors=2)

  • Participants
  • Parent commits 909ca84
  • Branches t355_trac_test_suite

Comments (0)

Files changed (2)

 #t288/t288_r1438538_sql_translate_global_env.diff
 t288/t288_r1438538_sql_translate_global_env_pending.diff
-t355/t355_r1440987_dbcursor_debug_sql.diff
+t288/t288_r1441419_sql_translate_cursor.diff
+#t355/t355_r1440987_dbcursor_debug_sql.diff
 #t115/t115_r1437383_inherit_product_config.diff
 #t333/t333_r1427886_schema_autoinc.diff
 #t333/t333_r1427886_mp_gen_schema.diff
 #t115/t115_r1433322_unittest2_assertRaises_msg.diff
 #t115/t115_r1436300_option_accessor.diff
 #t355/t355_r1434677_trac_test_attachments.diff
-t355/t355_r1437383_pkgresources_discovery.diff
-t355/t355_r1437383_trac_test_perm.diff
+#t355/t355_r1437383_pkgresources_discovery.diff
+#t355/t355_r1437383_trac_test_perm.diff
 t355/t355_r1437383_trac_test_ticket_api.diff

t288/t288_r1441419_sql_translate_cursor.diff

+# HG changeset patch
+# Parent a2880d8ab284f349dc1ef8867226d29c493c5039
+BH Multiproduct #288 : Put BloodhoundIterableCursor.cursor in product context
+
+diff -r a2880d8ab284 bloodhound_multiproduct/multiproduct/dbcursor.py
+--- a/bloodhound_multiproduct/multiproduct/dbcursor.py	Tue Feb 05 00:05:39 2013 -0500
++++ b/bloodhound_multiproduct/multiproduct/dbcursor.py	Tue Feb 05 11:27:05 2013 -0500
+@@ -107,6 +107,10 @@
+         BloodhoundIterableCursor.set_env(self.env)
+         return self.connection.executemany(query, params=params)
+ 
++    def cursor(self):
++        BloodhoundIterableCursor.set_env(self.env)
++        return self.connection.cursor()
++
+ class ProductEnvContextManager(object):
+     """Wrap an underlying database context manager so as to keep track
+     of (nested) product context.