mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-10 15:22:56 +00:00
* refactor: implement version as built-in function * test: add sqlness test for version()
20 lines
616 B
Plaintext
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 |
|
|
+-------------------------+
|
|
|