This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author palaviv
Recipients Ingo Ruhnke, berker.peksag, ghaering, palaviv
Date 2017-01-05.22:22:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483654936.62.0.197040317678.issue29021@psf.upfronthosting.co.za>
In-reply-to
Content
I actually was wrong and there is no problem with the type that is returned from the text_factory as it passes directly as argument for the create_function function.

Attached is a patch that change create_function and create_aggregate to use the text_factory when a TEXT data type is received. I am now using sqlite3_create_function_v2 but this is fine because we use sqlite3_stmt_readonly and it is from a newer version.

As for Ingo example code it still don't work with this current fix but this is due to a different problem. Now the _pysqlite_set_result function fail when we do PyUnicode_AsUTF8 on the result from py_identity. As this is a different problem I will fix this in a different patch.
History
Date User Action Args
2017-01-05 22:22:16palavivsetrecipients: + palaviv, ghaering, berker.peksag, Ingo Ruhnke
2017-01-05 22:22:16palavivsetmessageid: <1483654936.62.0.197040317678.issue29021@psf.upfronthosting.co.za>
2017-01-05 22:22:16palavivlinkissue29021 messages
2017-01-05 22:22:16palavivcreate