﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29938	"""int() argument must be a string or a number, not 'list'"" error oracle 12.1 python"	kono10	nobody	"When creating an initial migration in a new python project ""python manage.py migrate"" I get the following error int() argument must be a string or a number, not 'list'. I am using an oracle db version 12.1. I was able to fix the error by chancing line 245 in lib/python2.7/site-packages/django/db/backends/oracle/operations.py

**from** 
{{{
def fetch_returned_insert_id(self, cursor): 
      return int(cursor._insert_id_var.getvalue())
}}}

**to**

{{{
def fetch_returned_insert_id(self, cursor):
        return int(cursor._insert_id_var.getvalue()[0])
}}}"	Bug	closed	Database layer (models, ORM)	1.11	Normal	wontfix	oracle, oracle 12.1, python 2.7		Unreviewed	0	0	0	0	0	0
