Michael Manfre  committed 66b87b2

SQLInsertCompiler was incorrectly returning only the first set of values for a bulk_create call, instead of all of them. This is needed even with has_bulk_insert = False.

  • Participants
  • Parent commits 084864c
  • Branches default

Comments (0)

Files changed (1)

File sqlserver_ado/

         result = super(SQLInsertCompiler, self).as_sql(*args, **kwargs)
         if isinstance(result, list):
             # Django 1.4 wraps return in list
-            sql, params = result[0]
-            return [(self._identity_insert(sql), params)]
+            return [(self._identity_insert(x[0]), x[1]) \
+                for x in result]
         sql, params = result
         return self._identity_insert(sql), params