[go: nahoru, domu]

Skip to content

Commit

Permalink
move variable declaration to start of block - fixes vs2008 compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarnaut committed Jan 7, 2016
1 parent 46d999e commit ca5dc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject*
}

if (!multiple) {
Py_DECREF(self->lastrowid);
sqlite_int64 lastrowid;
Py_DECREF(self->lastrowid);
Py_BEGIN_ALLOW_THREADS
lastrowid = sqlite3_last_insert_rowid(self->connection->db);
Py_END_ALLOW_THREADS
Expand Down

0 comments on commit ca5dc55

Please sign in to comment.