mirror of
				https://github.com/python/cpython.git
				synced 2025-11-02 22:51:25 +00:00 
			
		
		
		
	A few sqlite files were still using RO instead of READONLY.
This commit is contained in:
		
							parent
							
								
									a291c8fed2
								
							
						
					
					
						commit
						10f07c41e6
					
				
					 2 changed files with 15 additions and 15 deletions
				
			
		| 
						 | 
					@ -378,7 +378,7 @@ PyObject* pysqlite_connection_rollback(pysqlite_Connection* self, PyObject* args
 | 
				
			||||||
        pysqlite_reset_all_statements(self);
 | 
					        pysqlite_reset_all_statements(self);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Py_BEGIN_ALLOW_THREADS
 | 
					        Py_BEGIN_ALLOW_THREADS
 | 
				
			||||||
        rc = sqlite3_prepare(self->db, "ROLLBACK", -1, &statement, &tail);
 | 
					        rc = sqlite3_prepare(self->db, "READONLYLLBACK", -1, &statement, &tail);
 | 
				
			||||||
        Py_END_ALLOW_THREADS
 | 
					        Py_END_ALLOW_THREADS
 | 
				
			||||||
        if (rc != SQLITE_OK) {
 | 
					        if (rc != SQLITE_OK) {
 | 
				
			||||||
            _pysqlite_seterror(self->db);
 | 
					            _pysqlite_seterror(self->db);
 | 
				
			||||||
| 
						 | 
					@ -1185,16 +1185,16 @@ static PyMethodDef connection_methods[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct PyMemberDef connection_members[] =
 | 
					static struct PyMemberDef connection_members[] =
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    {"Warning", T_OBJECT, offsetof(pysqlite_Connection, Warning), RO},
 | 
					    {"Warning", T_OBJECT, offsetof(pysqlite_Connection, Warning), READONLY},
 | 
				
			||||||
    {"Error", T_OBJECT, offsetof(pysqlite_Connection, Error), RO},
 | 
					    {"Error", T_OBJECT, offsetof(pysqlite_Connection, Error), READONLY},
 | 
				
			||||||
    {"InterfaceError", T_OBJECT, offsetof(pysqlite_Connection, InterfaceError), RO},
 | 
					    {"InterfaceError", T_OBJECT, offsetof(pysqlite_Connection, InterfaceError), READONLY},
 | 
				
			||||||
    {"DatabaseError", T_OBJECT, offsetof(pysqlite_Connection, DatabaseError), RO},
 | 
					    {"DatabaseError", T_OBJECT, offsetof(pysqlite_Connection, DatabaseError), READONLY},
 | 
				
			||||||
    {"DataError", T_OBJECT, offsetof(pysqlite_Connection, DataError), RO},
 | 
					    {"DataError", T_OBJECT, offsetof(pysqlite_Connection, DataError), READONLY},
 | 
				
			||||||
    {"OperationalError", T_OBJECT, offsetof(pysqlite_Connection, OperationalError), RO},
 | 
					    {"OperationalError", T_OBJECT, offsetof(pysqlite_Connection, OperationalError), READONLY},
 | 
				
			||||||
    {"IntegrityError", T_OBJECT, offsetof(pysqlite_Connection, IntegrityError), RO},
 | 
					    {"IntegrityError", T_OBJECT, offsetof(pysqlite_Connection, IntegrityError), READONLY},
 | 
				
			||||||
    {"InternalError", T_OBJECT, offsetof(pysqlite_Connection, InternalError), RO},
 | 
					    {"InternalError", T_OBJECT, offsetof(pysqlite_Connection, InternalError), READONLY},
 | 
				
			||||||
    {"ProgrammingError", T_OBJECT, offsetof(pysqlite_Connection, ProgrammingError), RO},
 | 
					    {"ProgrammingError", T_OBJECT, offsetof(pysqlite_Connection, ProgrammingError), READONLY},
 | 
				
			||||||
    {"NotSupportedError", T_OBJECT, offsetof(pysqlite_Connection, NotSupportedError), RO},
 | 
					    {"NotSupportedError", T_OBJECT, offsetof(pysqlite_Connection, NotSupportedError), READONLY},
 | 
				
			||||||
    {"row_factory", T_OBJECT, offsetof(pysqlite_Connection, row_factory)},
 | 
					    {"row_factory", T_OBJECT, offsetof(pysqlite_Connection, row_factory)},
 | 
				
			||||||
    {"text_factory", T_OBJECT, offsetof(pysqlite_Connection, text_factory)},
 | 
					    {"text_factory", T_OBJECT, offsetof(pysqlite_Connection, text_factory)},
 | 
				
			||||||
    {NULL}
 | 
					    {NULL}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -996,11 +996,11 @@ static PyMethodDef cursor_methods[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct PyMemberDef cursor_members[] =
 | 
					static struct PyMemberDef cursor_members[] =
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    {"connection", T_OBJECT, offsetof(pysqlite_Cursor, connection), RO},
 | 
					    {"connection", T_OBJECT, offsetof(pysqlite_Cursor, connection), READONLY},
 | 
				
			||||||
    {"description", T_OBJECT, offsetof(pysqlite_Cursor, description), RO},
 | 
					    {"description", T_OBJECT, offsetof(pysqlite_Cursor, description), READONLY},
 | 
				
			||||||
    {"arraysize", T_INT, offsetof(pysqlite_Cursor, arraysize), 0},
 | 
					    {"arraysize", T_INT, offsetof(pysqlite_Cursor, arraysize), 0},
 | 
				
			||||||
    {"lastrowid", T_OBJECT, offsetof(pysqlite_Cursor, lastrowid), RO},
 | 
					    {"lastrowid", T_OBJECT, offsetof(pysqlite_Cursor, lastrowid), READONLY},
 | 
				
			||||||
    {"rowcount", T_OBJECT, offsetof(pysqlite_Cursor, rowcount), RO},
 | 
					    {"rowcount", T_OBJECT, offsetof(pysqlite_Cursor, rowcount), READONLY},
 | 
				
			||||||
    {"row_factory", T_OBJECT, offsetof(pysqlite_Cursor, row_factory), 0},
 | 
					    {"row_factory", T_OBJECT, offsetof(pysqlite_Cursor, row_factory), 0},
 | 
				
			||||||
    {NULL}
 | 
					    {NULL}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue