Skip to content
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

remove GDA 4 condition for include in midgard_connection.c #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

loganrosen
Copy link

This condition appears to be a relic from when GDA 3 was supported. The block containing the gda_sql_parser_new function in this file used to have this GDA 4 condition as well, but it doesn't anymore, meaning that it implicitly declares the function and converts it to a pointer when GDA 5 is used, as can be seen here.

This condition appears to be a relic from when GDA 3 was supported. The block containing the gda_sql_parser_new function in this file used to have this GDA 4 condition as well, but it doesn't anymore [1], meaning that it implicitly declares the function and converts it to a pointer when GDA 5 is used, as can be seen here [2].

[1] 581404e#diff-da9c63301e7dc484369c3a9d6100fd0a
[2] https://launchpadlibrarian.net/229882653/buildlog_ubuntu-xenial-s390x.midgard2-core_10.05.7.1-2_BUILDING.txt.gz
@piotras
Copy link
Member

piotras commented Dec 15, 2015

Can you provide a patch which cleans entire GDA4 conditions?

@loganrosen
Copy link
Author

I think the GDA 4 condition is still necessary in src/midgard_user.c:

#ifdef HAVE_LIBGDA_4
    gda_execute_non_select_command (connection, del_query->str, &error);
#else   
    gda_connection_execute_non_select_command (connection, del_query->str, &error);
#endif

gda_execute_non_select_command was deprecated in favor of gda_connection_execute_non_select_command in GDA 4.2.3, and it was removed in GDA 5.

However, midgard-core doesn't have a version requirement on GDA 4. If we remove this condition, we must ensure that it's built against GDA >= 4.2.3, similarly to what openSUSE did with gtranslator in this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants