mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Use a built-in atof() function instead of the one from the library to
avoid problems with locale. Ticket #305. (CVS 1144) FossilOrigin-Name: 4d9edbc50f7dee64edbadad2e2dc4f93d8248b3b
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
** sqliteRegisterDateTimeFunctions() found at the bottom of the file.
|
||||
** All other code has file scope.
|
||||
**
|
||||
** $Id: date.c,v 1.1 2003/11/01 01:53:54 drh Exp $
|
||||
** $Id: date.c,v 1.2 2003/12/23 02:17:35 drh Exp $
|
||||
**
|
||||
** NOTES:
|
||||
**
|
||||
@@ -322,7 +322,7 @@ static int parseDateOrTime(const char *zDate, DateTime *p){
|
||||
}
|
||||
return 1;
|
||||
}else if( sqliteIsNumber(zDate) ){
|
||||
p->rJD = atof(zDate);
|
||||
p->rJD = sqliteAtoF(zDate);
|
||||
p->validJD = 1;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user