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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user