1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

A string consisting of a single '.' is not a floating point literal with extra

text at the end.  Fix for ticket [412bba9b22c677da]

FossilOrigin-Name: 57050162294efec90caa5cc3c2f8c1a85215526adcf57b284ce2d2e799286b78
This commit is contained in:
drh
2019-06-10 23:45:10 +00:00
parent e4a9e4d0e5
commit 378a7d356b
4 changed files with 27 additions and 10 deletions

View File

@@ -560,7 +560,7 @@ do_atof_calc:
/* return true if number and no extra non-whitespace chracters after */
if( z==zEnd && nDigit>0 && eValid && eType>0 ){
return eType;
}else if( eType>=2 && (eType==3 || eValid) ){
}else if( eType>=2 && (eType==3 || eValid) && nDigit>0 ){
return -1;
}else{
return 0;