On the third hand, this could be a case of premature optimization and the optimal course of action is not to optimize the action before doing it, but as Nike says, "Just Do It".
> -----Original Message----- > From: sqlite-users-bounces at mailinglists.sqlite.org [mailto:sqlite-users- > bounces at mailinglists.sqlite.org] On Behalf Of Clemens Ladisch > Sent: Thursday, 31 March, 2016 03:04 > To: SQLite mailing list > Subject: Re: [sqlite] Calling some predefined SQL function from another > custom SQL function? > > Olivier Mascia wrote: > > Writing a scalar SQL function, is there a C-level way to call some > > other scalar SQL function? > > The only way is to build an SQL statement from within the function and > execute it. > > > I think it is obvious I could build a SQL statement from within the > > function and execute it. But it sounds costly to involve the parser > > (yes, it's fast) for that, isn't it? > > You can prepare the statement beforehand. > > > Regards, > Clemens > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users