mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Documentation updates. Fix to date.c. But most importantly: database
connections are now allowed to change threads as long as they are not holding a lock. (CVS 2944) FossilOrigin-Name: 03c422ecb508dd84dfafc8b7a0b790a43f5dadda
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
** sqlite3RegisterDateTimeFunctions() found at the bottom of the file.
|
||||
** All other code has file scope.
|
||||
**
|
||||
** $Id: date.c,v 1.50 2006/01/13 01:17:21 drh Exp $
|
||||
** $Id: date.c,v 1.51 2006/01/15 00:13:16 drh Exp $
|
||||
**
|
||||
** NOTES:
|
||||
**
|
||||
@@ -105,19 +105,20 @@ static int getDigits(const char *zDate, ...){
|
||||
val = 0;
|
||||
while( N-- ){
|
||||
if( !isdigit(*(u8*)zDate) ){
|
||||
return cnt;
|
||||
goto end_getDigits;
|
||||
}
|
||||
val = val*10 + *zDate - '0';
|
||||
zDate++;
|
||||
}
|
||||
if( val<min || val>max || (nextC!=0 && nextC!=*zDate) ){
|
||||
return cnt;
|
||||
goto end_getDigits;
|
||||
}
|
||||
*pVal = val;
|
||||
zDate++;
|
||||
cnt++;
|
||||
}while( nextC );
|
||||
va_end(ap);
|
||||
end_getDigits:
|
||||
return cnt;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user