-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDBC_EXTENSIONS
compilation option doesn't work anymore
#760
Comments
Sure, will check. It has been a while. |
OK, found the reason for back then and what needs to be done now to make this proper:
I will check for the availability of |
I have done now the following (all on FreeBSD):
output:
as expected
as expected
well, someone did not check for So this needs improvement. Is that sufficient for you? |
Just made another check, the JDBC extension has not been added as a string. I will prepare a patch. |
If you're referring to my latest commit adding tests, indeed. That's how I found out about Is that failing in your case because the extensions are not added ? Because it works well on my laptop and on CI, tests are passing, and even though
Right, i will need to check on those. We removed the JSON one recently as it's bundled with, but i need to check for the SQLITE ones. I don't know how the other ones work (
Yes, i am working on that as part of #633, i have a branch on my fork where i did the changes already.
I did this using
Not until we close #633. |
Oh i understand now, you compiled with your own SQLite, indeed then it would be missing the extension functions. If possible it would be nice for the tests to run conditionally depending on the compilation options. For the recently added math tests i wanted to use The metadata one probably should check for |
Tomorrow i'll try to reproduce the tests errors you showed above, for that i need to compile the same way you do (and that would be a good occasion to tackle #753 !). |
What i don't quite understand is why Couldn't we pass it in a similar fashion as that? |
No, since the pragmas are in a char* array which are read at runtime. As you can see in the sqlite3.c they are ifdefs for included or absent for features. A mere external define won't do. |
Exactly, you got it. This is why I do compile this way on HP-UX to make sqlite-jdbc run:
|
Yeah i just tested that. It works if we want to use |
Of course not, the upstream project would need to add that define for use. Then the perl magic would be redundant. you can try to convince them to add it. |
Instead of relying of changing ifdefs use the variable declaration as anchor Closes: #760
Thanks a lot @michael-o, i can make the extension test pass with a Tomorrow i will polish the recently added math tests. |
Sure, try to replicate my failures first. Mind that the |
I've managed to replicate and committed some fixes, the tests should now run fine when using a provided amalgamation. |
Will check later as well. |
Hi @michael-o ,
in #465 you added support for
JDBC_EXTENSIONS
as a compilation option, however it doesn't seem to work anymore, so that never works.I tracked it down to this not doing anything, maybe because the source file changed and the perl line doesn't work as expected anymore?
If you have some time, do you want to have a look at this?
Thanks
The text was updated successfully, but these errors were encountered: