diff options
author | drh <> | 2023-07-01 15:23:24 +0000 |
---|---|---|
committer | drh <> | 2023-07-01 15:23:24 +0000 |
commit | 9ee9444a0adbf8f04081447d70d570f17c1a6e6a (patch) | |
tree | fa03bf2abe4a0407f771e5c5ff059dc7542a06fc /src/func.c | |
parent | 42d042e602233be808084e78ccbaba1b497c69a3 (diff) | |
download | sqlite-9ee9444a0adbf8f04081447d70d570f17c1a6e6a.tar.gz sqlite-9ee9444a0adbf8f04081447d70d570f17c1a6e6a.zip |
Improved response to Infinity and NaN. Remove the termporary fpdecode()
function.
FossilOrigin-Name: 76ab8ae809a47a66688e2d50c20dc87ce946d82e9ffebb3adda55c451fad07fc
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/func.c b/src/func.c index e41af59b7..b24359186 100644 --- a/src/func.c +++ b/src/func.c @@ -2371,25 +2371,6 @@ static void signFunc( sqlite3_result_int(context, x<0.0 ? -1 : x>0.0 ? +1 : 0); } - -#if 1 /* Temporary prototyping logic */ -static void fpdecodeFunc( - sqlite3_context *context, - int argc, - sqlite3_value **argv -){ - double r = sqlite3_value_double(argv[0]); - int n = 15; - FpDecode s; - char zBuf[50]; - - if( argc>=2 ) n = sqlite3_value_int(argv[1]); - sqlite3FpDecode(&s, r, n); - sqlite3_snprintf(sizeof(zBuf), zBuf, "%c%.*s/%d", s.sign, s.n, s.z, s.iDP); - sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); -} -#endif /* Temporary prototyping logic */ - /* ** All of the FuncDef structures in the aBuiltinFunc[] array above ** to the global function hash table. This occurs at start-time (as @@ -2461,12 +2442,6 @@ void sqlite3RegisterBuiltinFunctions(void){ FUNCTION(unicode, 1, 0, 0, unicodeFunc ), FUNCTION(char, -1, 0, 0, charFunc ), FUNCTION(abs, 1, 0, 0, absFunc ), - -#if 1 /* Temporary prototyping function */ - FUNCTION(fpdecode, 1, 0, 0, fpdecodeFunc ), - FUNCTION(fpdecode, 2, 0, 0, fpdecodeFunc ), -#endif - #ifndef SQLITE_OMIT_FLOATING_POINT FUNCTION(round, 1, 0, 0, roundFunc ), FUNCTION(round, 2, 0, 0, roundFunc ), |