Skip to content
Snippets Groups Projects
Commit 728f5622 authored by Arseniy Volynets's avatar Arseniy Volynets
Browse files

feat: suppot to_char sql function

- update sbroad submodule to commit with support of to_char
- add some integration tests, note: there are also
integration tests in cartridge
- This function is implemented as calling `format` on
given datetime object
- Usage:

to_char(datetime, format)

select to_char(datetime_column, 'Last updated: %Y-%m-%d') from t

Second argument is optional and could be specified as `null`:

select to_char(datetime_column, null) from t

- format is specified with the same rules as in strftime function
https://man.freebsd.org/cgi/man.cgi?query=strftime&sektion=3
parent 911fd5cd
No related branches found
No related tags found
1 merge request!963feat: support to_char sql function
Pipeline #38341 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment