From 080b53f14780445048c9170592e71a79fca2cfbb Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Fri, 17 Oct 2008 22:53:20 +0000 Subject: [PATCH] Use row_factory in preference to rowfactory since the builtin sqlite3 module does it that way and its better to be compatible with such things. --- Cursor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cursor.c b/Cursor.c index 339262e..4e61081 100644 --- a/Cursor.c +++ b/Cursor.c @@ -110,13 +110,14 @@ static PyMemberDef g_CursorMembers[] = { { "statement", T_OBJECT, offsetof(udt_Cursor, statement), READONLY }, { "connection", T_OBJECT_EX, offsetof(udt_Cursor, connection), READONLY }, { "numbersAsStrings", T_INT, offsetof(udt_Cursor, numbersAsStrings), 0 }, - { "rowfactory", T_OBJECT, offsetof(udt_Cursor, rowFactory), 0 }, + { "row_factory", T_OBJECT, offsetof(udt_Cursor, rowFactory), 0 }, { "bindvars", T_OBJECT, offsetof(udt_Cursor, bindVariables), READONLY }, { "fetchvars", T_OBJECT, offsetof(udt_Cursor, fetchVariables), READONLY }, { "inputtypehandler", T_OBJECT, offsetof(udt_Cursor, inputTypeHandler), 0 }, { "outputtypehandler", T_OBJECT, offsetof(udt_Cursor, outputTypeHandler), 0 }, + { "rowfactory", T_OBJECT, offsetof(udt_Cursor, rowFactory), 0 }, { NULL } };