Skip to content

Commit

Permalink
2023-11-30 19:56 UTC+0100 Phil Krylov (phil a t krylov.eu)
Browse files Browse the repository at this point in the history
  * contrib/hbsqlit3/hbsqlit3.ch
    * Updated SQLite constants to version 3.44.0.
    % Reordered hbsqlit3.ch to simplify diffing from sqlite.h.
  * contrib/hbsqlit3/core.c
    + SQLITE3_CREATE_FUNCTION(): Added support for function flags.
  • Loading branch information
tuffnatty committed Dec 1, 2023
1 parent 959e75b commit 34abcd5
Show file tree
Hide file tree
Showing 3 changed files with 277 additions and 120 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */

2023-11-30 19:56 UTC+0100 Phil Krylov (phil a t krylov.eu)
* contrib/hbsqlit3/hbsqlit3.ch
* Updated SQLite constants to version 3.44.0.
% Reordered hbsqlit3.ch to simplify diffing from sqlite.h.
* contrib/hbsqlit3/core.c
+ SQLITE3_CREATE_FUNCTION(): Added support for function flags.

2023-11-30 19:52 UTC+0100 Phil Krylov (phil a t krylov.eu)
* contrib/hbsqlit3/core.c
* contrib/hbsqlit3/hbsqlit3.ch
Expand Down
6 changes: 3 additions & 3 deletions contrib/hbsqlit3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,7 @@ HB_FUNC( SQLITE3_COMPILEOPTION_GET )
/**
Create Or Redefine SQL Functions
sqlite3_create_function( db, cFuncName, nArg, [cFunc|sFunc] )
sqlite3_create_function( db, cFuncName, nArg, [cFunc|sFunc], [nFunctionFlags] )
Only scalar function creation now supported.
*/
Expand All @@ -2487,7 +2487,7 @@ HB_FUNC( SQLITE3_CREATE_FUNCTION )
sqlite3_create_function( pHbSqlite3->db,
hb_parstr_utf8( 2, &hFuncName, NULL ),
hb_parnidef( 4, -1 ),
SQLITE_UTF8,
SQLITE_UTF8 | hb_parnidef( 5, 0 ),
pHbSqlite3->cbFunc,
func, NULL, NULL ) );
}
Expand All @@ -2496,7 +2496,7 @@ HB_FUNC( SQLITE3_CREATE_FUNCTION )
sqlite3_create_function( pHbSqlite3->db,
hb_parstr_utf8( 2, &hFuncName, NULL ),
-1,
SQLITE_UTF8,
SQLITE_UTF8 | hb_parnidef( 5, 0 ),
NULL,
NULL, NULL, NULL ) );

Expand Down
Loading

0 comments on commit 34abcd5

Please sign in to comment.