diff --git a/Operand.cpp b/Operand.cpp index 3561917..516306e 100644 --- a/Operand.cpp +++ b/Operand.cpp @@ -1,5 +1,6 @@ #include "Operand.h" #include "Exception.h" +#include #include namespace jet { @@ -50,7 +51,7 @@ namespace jet { return; } else if(in.startsWithNumber()) { doubleValue = in.asDouble(); - string = std::to_string(doubleValue); + string = std::format("{}", doubleValue); return; } else if(in.ifNext("'")) { string = in.getTokenExclude("'"); diff --git a/jet-2.0 b/jet-2.0 index e74d377..202ba81 100755 Binary files a/jet-2.0 and b/jet-2.0 differ diff --git a/testjet.jet b/testjet.jet index e2a374f..f45ab0c 100755 --- a/testjet.jet +++ b/testjet.jet @@ -4,12 +4,14 @@ This is a comment and should not show up in the output. $[nonexistant] + select * from testdata $[1.id] $[1.text] $[1.value] +