mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.6.x] Fixed last_executed_query test failure on Oracle
Backport of c0a4894dca from master.
			
			
This commit is contained in:
		
				
					committed by
					
						 Claude Paroz
						Claude Paroz
					
				
			
			
				
	
			
			
			
						parent
						
							7788c71890
						
					
				
				
					commit
					ae685e54cb
				
			| @@ -267,7 +267,7 @@ WHEN (new.%(col_name)s IS NULL) | ||||
|         # http://cx-oracle.sourceforge.net/html/cursor.html#Cursor.statement | ||||
|         # The DB API definition does not define this attribute. | ||||
|         statement = cursor.statement | ||||
|         if not six.PY3 and not isinstance(statement, unicode): | ||||
|         if statement and not six.PY3 and not isinstance(statement, unicode): | ||||
|             statement = statement.decode('utf-8') | ||||
|         # Unlike Psycopg's `query` and MySQLdb`'s `_last_executed`, CxOracle's | ||||
|         # `statement` doesn't contain the query parameters. refs #20010. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user