support format() function#4062
Conversation
|
Right now the feature is just a copy-paste from the |
|
if they are same thing, u can just add them as alias. just soemthing like
this would be better imo, as we won't have to fix bugs twice.. EDIT: like this Line 755 in dce6fd8 also from sqlite's changelog:
|
This reverts commit d84e382.
|
@Pavan-Nambi Thanks Pavan! That'll do it i guess? |
|
Thanks! Could you add some tests? |
Thanks @jussisaurio! but wouldn't the tests in turso/core/functions/printf.rs Lines 255 to 646 in 71715c2 or do you mean to add TCL tests like those here: https://github.com/tursodatabase/turso/blob/71715c22619cf132d55a6cfdb526c9b95b160fa3/testing/scalar-functions-printf.test let me know, and i'm fine with adding some TCL tests it doesn't seem hard :) |
|
@fahdfady although |
|
something i might need to clarify. SQLite now supports
@Pavan-Nambi already mentioned that before. thanks! |
|
@jussisaurio a bit late follow-up. I added TCL tests, inspired by the printf function tcl tests, and added some tests at the end to compare the output of |
resolves #4061
implements the scalar function
format()from sqlite https://sqlite.org/lang_corefunc.html#format