After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 320198 - Port to libgda 2
Port to libgda 2
Status: RESOLVED FIXED
Product: glom
Classification: Other
Component: build
git master
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
Murray Cumming
Depends on: 342947 433687
Blocks: 340759
 
 
Reported: 2005-10-29 20:47 UTC by Murray Cumming
Modified: 2007-05-08 19:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glom.patch (57.61 KB, patch)
2005-10-29 20:48 UTC, Murray Cumming
none Details | Review
glom.patch (57.61 KB, patch)
2005-10-29 20:53 UTC, Murray Cumming
none Details | Review
glom_port_libgdamm3_halfdone.patch (221.13 KB, patch)
2006-10-21 10:36 UTC, Murray Cumming
none Details | Review
glom_port_libgdamm3_halfdone2.patch (242.38 KB, patch)
2006-11-01 09:47 UTC, Murray Cumming
none Details | Review
Port to libgda3 (105.27 KB, patch)
2007-04-01 17:11 UTC, Armin Burgmeier
none Details | Review
Port to libgda3 (93.31 KB, patch)
2007-04-01 17:21 UTC, Armin Burgmeier
none Details | Review

Description Murray Cumming 2005-10-29 20:47:30 UTC
Half-done patch attached.
Comment 1 Murray Cumming 2005-10-29 20:48:06 UTC
Created attachment 54057 [details] [review]
glom.patch
Comment 2 Murray Cumming 2005-10-29 20:53:34 UTC
Created attachment 54058 [details] [review]
glom.patch
Comment 3 Murray Cumming 2006-10-21 10:36:11 UTC
Created attachment 75126 [details] [review]
glom_port_libgdamm3_halfdone.patch

The port is now more difficult because of the GdaValue->GValue change. But here is a half-done patch.

One problem at the moment is how to, for instance, easily declare a Glib::Value<guchar*> that will be a GValue of GDA_TYPE_BINARY.
Comment 4 Murray Cumming 2006-11-01 09:47:47 UTC
Created attachment 75758 [details] [review]
glom_port_libgdamm3_halfdone2.patch
Comment 5 Murray Cumming 2007-03-05 12:15:46 UTC
Note that the use of Glib::ValueBase in that patch should probably be replaced by Gnome::Gda::Value now.
Comment 6 Armin Burgmeier 2007-04-01 17:11:04 UTC
Created attachment 85666 [details] [review]
Port to libgda3

This is a patch that merges the GLOM_LIBGDA3 branch to trunk. It makes glom use the new libgda3 API and pygda3. Issues while porting to the new API are noted in the TODO file, especially the database creation still needs a better solution. Make sure you have the latest pygda and libgdamm from SVN.
Comment 7 Armin Burgmeier 2007-04-01 17:21:36 UTC
Created attachment 85668 [details] [review]
Port to libgda3

This patch also includes some cleanup I did today.
Comment 8 Murray Cumming 2007-04-01 17:29:34 UTC
So does this more or less work?
Comment 9 Armin Burgmeier 2007-04-06 22:14:48 UTC
It basically works, although I still want to tackle the issues noted in the TODO file. Loading the small business example crashes it. This might have something to do with changed escaping policy in libgda.
Comment 10 Murray Cumming 2007-04-15 12:15:36 UTC
I will take a look at this in a week or two. Well done.
Comment 11 Armin Burgmeier 2007-04-23 20:37:29 UTC
According to your latest ChangeLog entry, the Small Business example does still crash for you. I actually had it working already after Vivien fixed a bug in libgda (#427605). With the latest code, it does not crash, but also does not load the critical entry (the one with the picture). I am going to have a look at that.
Comment 12 Murray Cumming 2007-05-05 12:55:11 UTC
Yes, I can now create from an example without crashing. Excellent.

Regarding the picture data, I see this error on the command-line. Well, it's only the last part of the error:

WARNING:  nonstandard use of \\ in a string literal
LINE 1: ...,'','','','','Italy','',NULL,'','Yodda Yossarian','\\211PNG\...
                                                             ^
HINT:  Use the escape string syntax for backslashes, e.g., E'\\'.
Comment 13 Armin Burgmeier 2007-05-07 22:15:14 UTC
Did you apply the patch in #433687 to libgda? I do not see any warning or error with it.
Comment 14 Murray Cumming 2007-05-08 05:47:51 UTC
> Did you apply the patch in #433687 to libgda?

I thought that this had been applied already. Could you please check and apply it if necessary - permission seems to have been given, and you have my permission too.
Comment 15 Murray Cumming 2007-05-08 18:03:03 UTC
It seems to work very well. I fixed the error above, which I think was unrelated. 

Please merge this back into svn trunk when you have a chance, and then close this bug.

It will be great to finally have this done.
Comment 16 Armin Burgmeier 2007-05-08 19:55:37 UTC
Committed.