Skip to content

Commit

Permalink
add sql based regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojunjie committed Oct 19, 2022
1 parent 7522727 commit c72c46a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ February
-- !sql --
2014-12-21T12:34:56

-- !sql --
2014-12-21T12:34:56

-- !sql --
2004-10-18

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ suite("test_date_function") {
sql """ insert into ${tableName} values ("2014-12-21 12:34:56") """
qt_sql """ select str_to_date(test_datetime, '%Y-%m-%d %H:%i:%s') from ${tableName}; """
qt_sql """ select str_to_date("2014-12-21 12:34%3A56", '%Y-%m-%d %H:%i%%3A%s'); """
qt_sql """ select str_to_date("2014-12-21 12:34:56.789 PM", '%Y-%m-%d %h:%i:%s.%f %p'); """
qt_sql """ select str_to_date('200442 Monday', '%X%V %W') """
sql """ truncate table ${tableName} """
sql """ insert into ${tableName} values ("2020-09-01") """
Expand Down

0 comments on commit c72c46a

Please sign in to comment.