Files
greptimedb/tests/cases/standalone/common/function/system.result
Ning Sun b6033f62cd 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()
2024-01-10 11:04:18 +00:00

20 lines
616 B
Plaintext

-- SQLNESS REPLACE branch:\s+.+ branch: BRANCH
-- SQLNESS REPLACE commit:\s+.+ commit: COMMIT
-- SQLNESS REPLACE commit+\s+short:\s+.+ commit short: COMMIT SHORT
-- SQLNESS REPLACE dirty:\s+.+ dirty: DIRTY
-- SQLNESS REPLACE version:\s+.+ version: VERSION
-- SQLNESS REPLACE [\s\-]+
SELECT build();
++|build()|++|branch:BRANCH|commit:COMMIT|commitshort:COMMITSHORT|dirty:DIRTY|version:VERSION++
-- SQLNESS REPLACE greptimedb-[\d\.]+ greptimedb-VERSION
SELECT version();
+-------------------------+
| version() |
+-------------------------+
| 5.7.20-greptimedb-VERSION |
+-------------------------+