This commit is contained in:
Colin 2025-07-31 17:08:39 -04:00
parent 7a8aa23910
commit 4dc87989fc
2 changed files with 1 additions and 1 deletions

BIN
main Executable file

Binary file not shown.

View File

@ -92,7 +92,7 @@ func TestConvertExprToSQL(t *testing.T) {
},
{
filter: `created_ts > now() - 60 * 60 * 24`,
want: "EXTRACT(EPOCH FROM memo.created_ts) > $1",
want: "EXTRACT(EPOCH FROM TO_TIMESTAMP(memo.created_ts)) > $1",
args: []any{time.Now().Unix() - 60*60*24},
},
{