GNOME Bugzilla – Bug 669233
gda_connection_get_meta_store_data( GDA_CONNECTION_META_TABLES ) can fail silently
Last modified: 2012-02-05 21:15:47 UTC
Created attachment 206614 [details] gda_meta_tables_fails_as_lesser_user.c This test case shows that gda_connection_get_meta_store_data() can return an empty GdaDataModel for GDA_CONNECTION_META_TABLES, though no error or other warning is shown. This happens with a non-superuser user that I add in Glom, and is also seen in this Glom test case, which creates the user and then tries to use it: http://git.gnome.org/browse/glom/tree/tests/test_selfhosting_new_from_example_operator.cc I am still investigating to find out what about the user triggers this, but I though someone else might know where in the code an error is maybe not checked for properly.
Actually, this was caused by none of the tables having the "GRANT SELECT" privilege. I am surprised that this also means that the table's existence cannot even be discovered, but maybe it's intentional and unavoidable.
I think this is intentional.