refactor: implement version as built-in function and use fixed mysql version (#3133)

* refactor:  implement version as built-in function

* test: add sqlness test for version()
This commit is contained in:
Ning Sun
2024-01-10 19:04:18 +08:00
committed by GitHub
parent fd3f23ea15
commit b6033f62cd
5 changed files with 70 additions and 23 deletions

View File

@@ -5,3 +5,6 @@
-- SQLNESS REPLACE version:\s+.+ version: VERSION
-- SQLNESS REPLACE [\s\-]+
SELECT build();
-- SQLNESS REPLACE greptimedb-[\d\.]+ greptimedb-VERSION
SELECT version();