Exists a function like sqlite3_function_create?
Posted by: Luca Bianchi
Date: October 26, 2015 12:58PM

Hi. I'm developing an app that needs to support the both sqlite and mysql database. The problem is that i need a session variable but sqlite doesn't support it. So in sqlite I found this workaround. I append a C function with sqlite3_create_function() that returns the variable. I know mysql supports variables so I could simply use "SET @variablename=blah;" but since I'd like to keep the queries as close as possible is there a way to link a c function in mysql too?

Options: ReplyQuote


Subject
Views
Written By
Posted
Exists a function like sqlite3_function_create?
2103
October 26, 2015 12:58PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.