Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix boundary case for the toreal() SQL function. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | toTypeFuncs |
Files: | files | file ages | folders |
SHA1: |
abe82c634ccda7d62687df5917d18a9d |
User & Date: | mistachkin 2013-08-29 01:01:11.268 |
Context
2013-08-29
| ||
01:11 | Merge updates from trunk. (check-in: 375dfe288f user: mistachkin tags: toTypeFuncs) | |
01:01 | Fix boundary case for the toreal() SQL function. (check-in: abe82c634c user: mistachkin tags: toTypeFuncs) | |
2013-08-28
| ||
18:56 | Merge updates from trunk. (check-in: ffc6e68283 user: mistachkin tags: toTypeFuncs) | |
Changes
Changes to src/func.c.
︙ | ︙ | |||
1026 1027 1028 1029 1030 1031 1032 | case SQLITE_FLOAT: { sqlite3_result_double(context, sqlite3_value_double(argv[0])); break; } case SQLITE_INTEGER: { i64 iVal = sqlite3_value_int64(argv[0]); double rVal = (double)iVal; | | | 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 | case SQLITE_FLOAT: { sqlite3_result_double(context, sqlite3_value_double(argv[0])); break; } case SQLITE_INTEGER: { i64 iVal = sqlite3_value_int64(argv[0]); double rVal = (double)iVal; if( iVal==(i64)rVal ){ sqlite3_result_double(context, rVal); } break; } case SQLITE_BLOB: case SQLITE_TEXT: { const unsigned char *zStr = sqlite3_value_text(argv[0]); |
︙ | ︙ |