Add test cases for tointeger() and toreal() functions. Fixes for several tests.

FossilOrigin-Name: 5e1e9fd5e4f189836442baa42244be00de13ff0f
This commit is contained in:
mistachkin
2013-08-20 09:26:38 +00:00
parent db1c12b79f
commit 98ab33a82f
4 changed files with 235 additions and 87 deletions
+5 -1
View File
@@ -1028,7 +1028,11 @@ static void torealFunc(
break;
}
case SQLITE_INTEGER: {
sqlite3_result_double(context, (double)sqlite3_value_int64(argv[0]));
i64 iVal = sqlite3_value_int64(argv[0]);
double rVal = (double)iVal;
if( iVal==rVal ){
sqlite3_result_double(context, rVal);
}
break;
}
case SQLITE_BLOB: