aboutsummaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2005-06-25 18:42:14 +0000
committerdrh <drh@noemail.net>2005-06-25 18:42:14 +0000
commit487e262f44a6919e7bbac75af4dc8306e382b30b (patch)
treeed1177ea8c14d24bf311848182fce9ec96cb8307 /src/date.c
parent7f057c9166a1c8e13bda74b3db7ee488659ae7fb (diff)
downloadsqlite-487e262f44a6919e7bbac75af4dc8306e382b30b.tar.gz
sqlite-487e262f44a6919e7bbac75af4dc8306e382b30b.zip
Remove the blob(), text() and numeric() functions added in (2524) and
replace them with the standard CAST operator. Ticket #1287. (CVS 2527) FossilOrigin-Name: 17631785f9ee8ab280c82677eb53886912e085bc
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/date.c b/src/date.c
index 520756916..35c0bf64a 100644
--- a/src/date.c
+++ b/src/date.c
@@ -16,7 +16,7 @@
** sqlite3RegisterDateTimeFunctions() found at the bottom of the file.
** All other code has file scope.
**
-** $Id: date.c,v 1.44 2005/03/21 00:43:44 drh Exp $
+** $Id: date.c,v 1.45 2005/06/25 18:42:14 drh Exp $
**
** NOTES:
**
@@ -124,11 +124,7 @@ static int getDigits(const char *zDate, ...){
** Read text from z[] and convert into a floating point number. Return
** the number of digits converted.
*/
-static int getValue(const char *z, double *pR){
- const char *zEnd;
- *pR = sqlite3AtoF(z, &zEnd);
- return zEnd - z;
-}
+#define getValue sqlite3AtoF
/*
** Parse a timezone extension on the end of a date-time.
@@ -320,7 +316,7 @@ static int parseDateOrTime(const char *zDate, DateTime *p){
p->validJD = 1;
return 0;
}else if( sqlite3IsNumber(zDate, 0, SQLITE_UTF8) ){
- p->rJD = sqlite3AtoF(zDate, 0);
+ getValue(zDate, &p->rJD);
p->validJD = 1;
return 0;
}