1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 06:08:38 -04:00

Revert "Tidy"

This reverts commit 4a4f5d599b.
This commit is contained in:
Kenichi Ishigaki 2022-02-26 11:14:13 +09:00
parent 4a4f5d599b
commit 27dfab4fb2

View file

@ -1868,7 +1868,8 @@ sqlite_db_create_function(pTHX_ SV *dbh, const char *name, int argc, SV *func, i
/* warn("create_function %s with %d args\n", name, argc); */
rc = sqlite3_create_function( imp_dbh->db, name, argc, SQLITE_UTF8|flags,
SvOK(func) ? (func_sv, _FUNC_DISPATCHER[imp_dbh->string_mode]) : (NULL, NULL),
SvOK(func) ? func_sv : NULL,
SvOK(func) ? _FUNC_DISPATCHER[imp_dbh->string_mode] : NULL,
NULL, NULL );
if ( rc != SQLITE_OK ) {
sqlite_error(dbh, rc, form("sqlite_create_function failed with error %s", sqlite3_errmsg(imp_dbh->db)));