Added stub for DATEDIFF function.
This commit is contained in:
1 parent
db59e9e87c
commit
50a29a4238
1 file changed
+15
-1
+15
-1
@@ -364,7 +364,21 @@ namespace jet {
|
|||||||
int unixtime = seconds_since_epoch.count();
|
int unixtime = seconds_since_epoch.count();
|
||||||
string << unixtime;
|
string << unixtime;
|
||||||
} else
|
} else
|
||||||
throw coreutils::Exception("Expecting ) at end of UNIXTIME.");
|
throw coreutils::Exception("Expecting ) at end of UNIXTIME.");
|
||||||
|
}
|
||||||
|
else if(in.ifNextIgnoreCase("DATEDIFF")) {
|
||||||
|
if(!in.ifNext("("))
|
||||||
|
throw coreutils::Exception("Expecting ( for DATEDIFF.");
|
||||||
|
Operand parm1(in, tag);
|
||||||
|
if(!in.ifNext(","))
|
||||||
|
throw coreutils::Exception("Expecting , in DATEDIFF expression.");
|
||||||
|
Operand parm2(in, tag);
|
||||||
|
if(in.ifNext(")")) {
|
||||||
|
|
||||||
|
// TODO: Implement DATEDIFF.
|
||||||
|
|
||||||
|
} else
|
||||||
|
throw coreutils::Exception("Expecting ) at end of DATEDIFF expression.");
|
||||||
} else if(in.ifNextIgnoreCase("true")) {
|
} else if(in.ifNextIgnoreCase("true")) {
|
||||||
boolean = true;
|
boolean = true;
|
||||||
string = "true";
|
string = "true";
|
||||||
|
|||||||
Reference in new issue
Block a user