Use go embed to load queries from static files (#607)
This commit is contained in:
@@ -74,6 +74,8 @@ func (res *Result) PostProcess() {
|
||||
res.Rows[i][j] = encodeBinaryData([]byte(val), BinaryCodec)
|
||||
}
|
||||
case time.Time:
|
||||
// RFC 3339 is clear that years are 4 digits exactly.
|
||||
// See golang.org/issue/4556#c15 for more discussion.
|
||||
if val.Year() < 0 || val.Year() >= 10000 {
|
||||
res.Rows[i][j] = "ERR: INVALID_DATE"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user