From vmalerba@gmail.com Tue Nov 1 10:09:33 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C4E387501B0 for ; Tue, 1 Nov 2011 10:09:33 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uBi5FQqtPeRm for ; Tue, 1 Nov 2011 10:09:28 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id B8249750345 for ; Tue, 1 Nov 2011 10:09:17 +0000 (UTC) Received: by gyb11 with SMTP id 11so3593782gyb.27 for ; Tue, 01 Nov 2011 03:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zkod/chxRvZGF0pePtyX6762b5P/uJ0/U1bnw7sS7CY=; b=riBheZIctOi4CjqG/sYlaND5V4r4CDyN0XA+7HieX3ClKh53MlPIyEqPcNKlFCRGFt 8iR5NdhSrf29JqWXQMDMgez3RpxQRqJ6yJZjnT48zIUN4q0rosQvVfLMXboc9oQIe8WB NSQ4eN8gD/G0qkRvRI3PhMhz1zbQNB3L3JBnQ= MIME-Version: 1.0 Received: by 10.236.123.73 with SMTP id u49mr21091281yhh.88.1320142156060; Tue, 01 Nov 2011 03:09:16 -0700 (PDT) Received: by 10.147.170.6 with HTTP; Tue, 1 Nov 2011 03:09:16 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Nov 2011 11:09:16 +0100 Message-ID: From: Vivien Malerba To: Daniel Espinosa Content-Type: multipart/alternative; boundary=20cf3010e2ab43d78a04b0a98c35 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] API/ABI break request X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 10:09:34 -0000 --20cf3010e2ab43d78a04b0a98c35 Content-Type: text/plain; charset=ISO-8859-1 On 1 November 2011 00:49, Daniel Espinosa wrote: > I found that GdaNumeric must be SEALED and I think it must happens > before to release 5.0 > Too late, the 5.0.0 version has been released last week. > > Please consider it. I'm in the process to add some API to access to > GdaNumeric members and recommend the users not to access it directly. > > Sorry but I have switched to Ubuntu 11.10 and I can't access to my SSH > account on git.gnome.org, I'm working in my local repository and I'll > send you the patches I found in others bindings and this. > Ok. vivien --20cf3010e2ab43d78a04b0a98c35 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 1 November 2011 00:49, Daniel Espinos= a <esodan@gmail.co= m> wrote:
I found that GdaNumeric must be SEALED and I think it must happens
before to release 5.0

Too late, the 5.0.0 version = has been released last week.
=A0

Please consider it. I'm in the process to add some API to access to
GdaNumeric members and recommend the users not to access it directly.

Sorry but I have switched to Ubuntu 11.10 and I can't access to my SSH<= br> account on git.gnome.org= , I'm working in my local repository and I'll
send you the patches I found in others bindings and this.
<= div>
Ok.

vivien
--20cf3010e2ab43d78a04b0a98c35-- From vmalerba@gmail.com Tue Nov 1 10:46:53 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E0EA75016D for ; Tue, 1 Nov 2011 10:46:53 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BaTYUQYm9uOb for ; Tue, 1 Nov 2011 10:46:44 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 0CBDD75002C for ; Tue, 1 Nov 2011 10:46:35 +0000 (UTC) Received: by ywt32 with SMTP id 32so10406683ywt.27 for ; Tue, 01 Nov 2011 03:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Kcr4nUIYEQ/lwug/x1AOCvEThaF2MS5jZ7Wte6shWZw=; b=wC9DqOKQB1iMasnbwrGzKDOPkRuT7DHJKNs7VVagbOqYGh/dn1D3hZX9xx1WL1lfHz 2Gm3enH0mDThOW/ZpGhO7OiDi2j3EaW8ffCOY1pC/f/31t8o0cZ30Xf1CI3l5kDMnDxn J3BExcFR2PCQmEu43EV2o+DCBMo//Mm8ysTR4= MIME-Version: 1.0 Received: by 10.236.181.131 with SMTP id l3mr21267258yhm.105.1320144394344; Tue, 01 Nov 2011 03:46:34 -0700 (PDT) Received: by 10.147.170.6 with HTTP; Tue, 1 Nov 2011 03:46:34 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Nov 2011 11:46:34 +0100 Message-ID: From: Vivien Malerba To: Kirill Scherba Content-Type: multipart/mixed; boundary=20cf303f6bb2ad572d04b0aa11f7 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] Question about the Advanced GdaDataSelect usage X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 10:46:53 -0000 --20cf303f6bb2ad572d04b0aa11f7 Content-Type: multipart/alternative; boundary=20cf303f6bb2ad572a04b0aa11f5 --20cf303f6bb2ad572a04b0aa11f5 Content-Type: text/plain; charset=ISO-8859-1 On 28 October 2011 22:08, Kirill Scherba wrote: > Hi, > > I've added code from the "Advanced GdaDataSelect usage" example "Automatic > re-run of the SELECT statement" to my application and it doesn't > work properly. I have an error message When I execute the next > gda_set_set_holder_value (params, NULL, "theid", 4); > in my code, and the data doesn't changed. > The message is: WARNING **: Could not re-run SELECT statement: Can't get > the prepared statement's actual statement > > When I try the next sample in the "Advanced GdaDataSelect usage" - Invalid > parameters I have other message and code doesn't execute properly too. The > message is: Could not execute the SQL command: Parameter 'theid' is invalid > > What's wrong? What's the secret is in the "Advanced GdaDataSelect usage"? > > It works for me, see the simple example attached, which gives the following output when run: ./test id | name | default_served_by | country | city ---+---------------+-------------------+---------+----- 2 | Ed Lamton | 4 | SP | MDR 3 | Lew Bonito | 1 | FR | TLS 4 | Mark Lawrence | NULL | SP | MDR (3 rows) id | name | default_served_by | country | city ---+---------------+-------------------+---------+----- 2 | Ed Lamton | 4 | SP | MDR 3 | Lew Bonito | 1 | FR | TLS 4 | Mark Lawrence | NULL | SP | MDR 9 | Greg Popoff | 2 | SP | MDR (4 rows) To check your problem, could you be more specific about the version of Libgda you use and which database server you use? Also a small test case would be useful. Regards, Vivien --20cf303f6bb2ad572a04b0aa11f5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 28 October 2011 22:08, Kirill Scherba= <kiriushka@gma= il.com> wrote:
Hi,

I've added code from the "Advanced GdaDataSelect usage= " example "Automatic re-run of the SELECT statement" to my a= pplication and it doesn't work=A0properly. I have an error message When= I execute the next=A0=A0
gda_set_set_holder_value (params, NULL, "theid", 4);=A0
in my code, and the data doesn't changed.=A0
The message is:= =A0WARNING **: Could not re-run SELECT statement: Can't get the prepare= d statement's actual statement

When I try the next sample in the=A0"Advanced GdaDataSelect usage&= quot; -=A0Invalid parameters I have other message and code doesn't exec= ute properly too. The message is:=A0Could not execute the SQL command: Para= meter 'theid' is invalid

What's wrong? What's the secret is in the=A0&qu= ot;Advanced GdaDataSelect usage"?


It works for me, see the simple example attached, which gives the foll= owing output when run:
=A0./test
id | name=A0=A0=A0=A0=A0=A0=A0=A0=A0 | default_served_= by | country | city
---+---------------+---= ----------------+---------+-----
=A02 | Ed= Lamton=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 4 | S= P=A0=A0=A0=A0=A0 | MDR
=A03 | Lew Bonito=A0=A0= =A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 1 | FR=A0=A0=A0=A0=A0= | TLS
=A04 | Mark Lawrence |=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 NULL | SP=A0=A0=A0=A0=A0 | MDR
(3 rows)
id | name=A0=A0=A0=A0=A0=A0=A0=A0=A0 | default_served_by= | country | city
---+---------------+---= ----------------+---------+-----
=A02 | Ed= Lamton=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 4 | S= P=A0=A0=A0=A0=A0 | MDR
=A03 | Lew Bonito=A0=A0= =A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 1 | FR=A0=A0=A0=A0=A0= | TLS
=A04 | Mark Lawrence |=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 NULL | SP=A0=A0=A0=A0=A0 | MDR
=A09 | Greg Popoff=A0= =A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 2 | SP=A0=A0=A0=A0=A0= | MDR
(4 rows)


To check your problem, could you be more specific about the version= of Libgda you use and which database server you use? Also a small test cas= e would be useful.

Regards,

Vivien

--20cf303f6bb2ad572a04b0aa11f5-- --20cf303f6bb2ad572d04b0aa11f7 Content-Type: application/x-bzip-compressed-tar; name="20111101_data_select_rerun.tbz" Content-Disposition: attachment; filename="20111101_data_select_rerun.tbz" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gugruyep0 QlpoOTFBWSZTWVnIZLoAAVL/hOywAQBfd/+/v/fexP///8sAAgAIUAOeMupztwdAoSUSameknqae ptDUNNHqDTygAAGgAPU9IAASpomk1NG8IoaaGQaABkNANAAAeo0AGQmiEnpABppoAGQAaaGgAAAA DmE0ZGhoZDCNDIaaNABiMmQDCAYBIoCJMnppqYJNpPSNT2qMaTJ6j1AxGjRiAGHlT2rh+Xp1R187 oo5GgTsSQjZQy1FzkWd3nVIX2VTVjBppJZiKYsQgY0xoGMD482w6T4jDCkAbowk6tslv6vd/cpqx nqu8VX7ZVDqrmViIs/5SFonVtUSwJFWfyB5nXgLYyhPpq8FSKMlH/ISvoHKR5S4rVp/ASqx+ZhKB wkVjI9i2kBoc1QmaTY9pJJhIjMDDs5WNcNnl78gmMO4Zy3FGUPoINgqaz0QLDXkBR1pBRPdWA2Ha NFMVBS3hxFeveOIUo7sggA+VOPUxEPt5CCIO05qXlqsjtykYwsKC6xB6O9fzoJC8yUqCh3JTHiDF kBcuWtsIFAQvlncG9UuRXhoLCgRqSUPyTIKs1LtWDgvRMQ0pO6UBFAoKAtPg2Rj1ltSilY++88BC MJWuXQxBX9yyNrI7KJ5thl32zloeEA3DT6Y2HEqbdLHWIhhGb1CMhqJ+Q84UilFyraspEnlcbGyR IAV0FsyG0epI3PxHz1w4EqrcrDKaVvtwmUojJmulMqzVm3xVBtHnwhcFkaoQxLSMBBnCm6IlSgDh GlARKngLzMutKjENDReY/wMXpzdXTvLhZcaZ+YvUPY0vDlRQNvuD8U/OuVbbtxE1+PxUJhK9CbLU x7EdCGCmjeZAOYinEvJmjMbKAfBXo4EShv7ViAsRaFwtZtCQEzDKZz4BEtrjWRwIrrYYuhrBk6LN jLjSagyEyP60JyoNchypbzsZi7rckQGTkHM2UjVQtoq460hOJk5UEcQyDRkhQ/AKJOvENzDgQhBj OPpNOtTRAswNPn5ZFRnIFpW0If4T09C/bUbiaNKLRbca4GbJYrKkQuUzWjikRC0cEWFYjWzNksXj 7yW44idqMh2sLCYKFSOjdnM8nAyES8/00G5mhck20mxsZAYMUNBVWalgMNKqcxgCxIO1hJA1E6O/ nRLgZSnGhgOTDw3bYkhHGoK7OatM5nEV1vPc5Nxl3JqQOampgxlkT6kYnDwP11Kwvzk0CHIcxVlf C0W1EXVeTlYkYC7FwXFIZeXmo01SS/8XckU4UJBZyGS6 --20cf303f6bb2ad572d04b0aa11f7-- From murrayc@murrayc.com Tue Nov 1 19:22:42 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FB0175027E for ; Tue, 1 Nov 2011 19:22:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qPltYTtg15Q9 for ; Tue, 1 Nov 2011 19:22:40 +0000 (UTC) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by menubar.gnome.org (Postfix) with ESMTP id 57440750212 for ; Tue, 1 Nov 2011 19:22:31 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3671A201A7; Tue, 1 Nov 2011 15:22:29 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 01 Nov 2011 15:22:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:content-transfer-encoding :mime-version; s=smtpout; bh=haPiYCbIQHfNJVQ3HC9NKoMZUQk=; b=PFe N18Ykej25064vYhUjVWHm7Qacim6rrmVNX1DlhNubmPt5ukRELReYAET0oAN/gDE G4VzRuJ44WH+y7CKQwWpamFH25edFo9CvKrnaVrVtaYu0lu2gfumwQBS/oztVDDd ch92Zig2w3TDKpQH64A/5u2qCkxE7H37Uf4OSBDE= X-Sasl-enc: 73VeG2cBbIRnqc3ym3ZeH6ieJkVUZ5kcP/chSTOdPTer 1320175348 Received: from [192.168.178.34] (ppp-188-174-50-150.dynamic.mnet-online.de [188.174.50.150]) by mail.messagingengine.com (Postfix) with ESMTPSA id 3FAC84834E5; Tue, 1 Nov 2011 15:22:28 -0400 (EDT) Message-ID: <1320175345.10140.4.camel@localhost> From: Murray Cumming To: Daniel Espinosa Date: Tue, 01 Nov 2011 20:22:25 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1 (3.2.1-2.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] API/ABI break request X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 19:22:42 -0000 On Mon, 2011-10-31 at 17:49 -0600, Daniel Espinosa wrote: > I found that GdaNumeric must be SEALED and I think it must happens > before to release 5.0 > > Please consider it. I'm in the process to add some API to access to > GdaNumeric members and recommend the users not to access it directly. Maybe we can deprecate direct access without sealing it completely, and add some methods, even in 5.0.x if it's really very necessary. But I guess that Vivien would need to see the patch to decide. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From murrayc@murrayc.com Wed Nov 9 10:13:07 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC4FF75018B for ; Wed, 9 Nov 2011 10:13:06 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yQa1x4Gyk1G2 for ; Wed, 9 Nov 2011 10:13:05 +0000 (UTC) X-Greylist: delayed 411 seconds by postgrey-1.32 at menubar.gnome.org; Wed, 09 Nov 2011 10:13:05 UTC Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by menubar.gnome.org (Postfix) with ESMTP id 14F4A750146 for ; Wed, 9 Nov 2011 10:12:56 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id A0ACF21177; Wed, 9 Nov 2011 05:06:04 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 09 Nov 2011 05:06:04 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:date :content-type:content-transfer-encoding:mime-version; s=smtpout; bh=suhk82eF5qVwcNdIww4YSi3RCDQ=; b=Fr2web8xum8S6DLiMBZS4QBFFXyE dQTfHALB7PT86xI1ZWmG63OrattaFOjJdU/wg4RFTeGoiwm+fvk2qaR635XatTl7 8YugB6g+M4uCIpGuG2DIkIw/5twP1l2asbaF5nmLeaZyAUKE2H0jHErwE2gxinnB YzTEoiKmddIIaP8= X-Sasl-enc: Yy6kq8r+Gaooju7sFaLvjUqoKJAKLyWN2P16PcwB8ml7 1320833164 Received: from [192.168.178.24] (ppp-93-104-160-93.dynamic.mnet-online.de [93.104.160.93]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2D64D48247F for ; Wed, 9 Nov 2011 05:06:04 -0500 (EST) Message-ID: <1320833162.2277.22.camel@murrayc-desktop> From: Murray Cumming To: gnome-db-list Date: Wed, 09 Nov 2011 11:06:02 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.0- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: [gnome-db] gda_connection_statement_to_sql() without a connection X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 10:13:07 -0000 In libglom, I'm using gda_connection_statement_to_sql() http://developer.gnome.org/libgda/unstable/GdaConnection.html#gda-connection-statement-to-sql to generate a SQL statement that's appropriate for the particular backend (PostgreSQL mostly), with the correct quoting (because I use GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE when opening the connection). However, I don't always want an actual connection, because OnlineGlom then uses that SQL string with its own JDBC Java API. So is there any easy way to get that SQL string without actually connecting to the server? gda_statement_to_sql() seems to ignore the connection and the quoting for case-sensitivity. http://developer.gnome.org/libgda/unstable/GdaStatement.html#gda-statement-to-sql -- murrayc@murrayc.com www.murrayc.com www.openismus.com From vmalerba@gmail.com Wed Nov 9 12:28:16 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F2E497500D2 for ; Wed, 9 Nov 2011 12:28:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vDvCxtguy6rH for ; Wed, 9 Nov 2011 12:28:11 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 84FD375010B for ; Wed, 9 Nov 2011 12:28:02 +0000 (UTC) Received: by ggnk3 with SMTP id k3so2563368ggn.27 for ; Wed, 09 Nov 2011 04:28:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MF7EqzMsuufx3tv/gEGKEdyAvb1z1zvwPxPdblyJhyc=; b=Y6MYwtvLAHzCn6yeqZIHGkvvRBV9RxYR4udedF5L3KlTDL4cCCK+2uiR8KoSRzzF9a W0u6srI26a4ajGY6m83g7uE0+r1R033H3GvndmVxZRdYU8I86lfJS2uznakKVC6BVkR4 /mad1mqdGwND9czfkXZz1o8ISg09VaiP1ZwIo= MIME-Version: 1.0 Received: by 10.146.74.10 with SMTP id w10mr1116417yaa.14.1320841680024; Wed, 09 Nov 2011 04:28:00 -0800 (PST) Received: by 10.147.170.6 with HTTP; Wed, 9 Nov 2011 04:27:59 -0800 (PST) In-Reply-To: <1320833162.2277.22.camel@murrayc-desktop> References: <1320833162.2277.22.camel@murrayc-desktop> Date: Wed, 9 Nov 2011 13:27:59 +0100 Message-ID: From: Vivien Malerba To: Murray Cumming Content-Type: multipart/alternative; boundary=000e0cd4b21424733404b14c6bd3 Cc: gnome-db-list Subject: Re: [gnome-db] gda_connection_statement_to_sql() without a connection X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 12:28:16 -0000 --000e0cd4b21424733404b14c6bd3 Content-Type: text/plain; charset=ISO-8859-1 On 9 November 2011 11:06, Murray Cumming wrote: > In libglom, I'm using > gda_connection_statement_to_sql() > > http://developer.gnome.org/libgda/unstable/GdaConnection.html#gda-connection-statement-to-sql > to generate a SQL statement that's appropriate for the particular > backend (PostgreSQL mostly), with the correct quoting (because I use > GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE when opening the > connection). > > However, I don't always want an actual connection, because OnlineGlom > then uses that SQL string with its own JDBC Java API. > > So is there any easy way to get that SQL string without actually > connecting to the server? gda_statement_to_sql() seems to ignore the > connection and the quoting for case-sensitivity. > > http://developer.gnome.org/libgda/unstable/GdaStatement.html#gda-statement-to-sql > There is no easy way of doing this. After a quick analysis, the best to implement this feature (easiest to use and clean solution) would be to allow one to create GdaConnection objects but with the connection closed (which is in fact very easy to do). You could then use the gda_connection_statement_to_sql() normally, and then either discard the connection, or call gda_connection_open() if you need to execute statements. Would it suit your needs? Vivien --000e0cd4b21424733404b14c6bd3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 9 November 2011 11:06, Murray Cumming= <murrayc@murra= yc.com> wrote:
In libglom, I'm using
gda_connection_statement_to_sql()
http://developer.gnome.org= /libgda/unstable/GdaConnection.html#gda-connection-statement-to-sql
to generate a SQL statement that's appropriate for the particular
backend (PostgreSQL mostly), with the correct quoting (because I use
GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE when opening the
connection).

However, I don't always want an actual connection, because OnlineGlom then uses that SQL string with its own JDBC Java API.

So is there any easy way to get that SQL string without actually
connecting to the server? gda_statement_to_sql() seems to ignore the
connection and the quoting for case-sensitivity.
http://developer.gnome.org/libgda/unst= able/GdaStatement.html#gda-statement-to-sql

Th= ere is no easy way of doing this. After a quick analysis, the best to imple= ment this feature (easiest to use and clean solution) would be to allow one= to create GdaConnection objects but with the connection closed (which is i= n fact very easy to do). You could then use the gda_connection_statement_to= _sql() normally, and then either discard the connection, or call gda_connec= tion_open() if you need to execute statements. Would it suit your needs?
Vivien
--000e0cd4b21424733404b14c6bd3-- From murrayc@murrayc.com Wed Nov 9 12:37:06 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 764DD75010B for ; Wed, 9 Nov 2011 12:37:06 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p9qILmOT81dB for ; Wed, 9 Nov 2011 12:37:01 +0000 (UTC) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by menubar.gnome.org (Postfix) with ESMTP id 4DE247500D2 for ; Wed, 9 Nov 2011 12:36:53 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id B4E8220FFD; Wed, 9 Nov 2011 07:36:51 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 09 Nov 2011 07:36:51 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:content-transfer-encoding :mime-version; s=smtpout; bh=ueqzDZg9G2SE1wfR61j+76CBxkg=; b=pc/ Jca7qq526sPguyZ7djhERSrAQd1IofUGNJqXEfAMz6FvlRURlXJJZzFphhcJCFSR dDLD0nlLgpP+AQuJGviS8D0gR3mrFi5ozGBzWsK0ywjWwgvh15o8QBGOIGUPjTOh hqII2ncD6kmyI4MeK6/JDiw+VM0flCXV/QJ2gF/U= X-Sasl-enc: w3RsRlKGsRT/JviA2m4e5UOBrSA2bqTZV0pERWhFHKCm 1320842211 Received: from [192.168.178.24] (ppp-93-104-160-93.dynamic.mnet-online.de [93.104.160.93]) by mail.messagingengine.com (Postfix) with ESMTPSA id 1E8274824AB; Wed, 9 Nov 2011 07:36:51 -0500 (EST) Message-ID: <1320842209.2277.30.camel@murrayc-desktop> From: Murray Cumming To: Vivien Malerba Date: Wed, 09 Nov 2011 13:36:49 +0100 In-Reply-To: References: <1320833162.2277.22.camel@murrayc-desktop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.0- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: gnome-db-list Subject: Re: [gnome-db] gda_connection_statement_to_sql() without a connection X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 12:37:06 -0000 On Wed, 2011-11-09 at 13:27 +0100, Vivien Malerba wrote: > > > On 9 November 2011 11:06, Murray Cumming wrote: > In libglom, I'm using > gda_connection_statement_to_sql() > http://developer.gnome.org/libgda/unstable/GdaConnection.html#gda-connection-statement-to-sql > to generate a SQL statement that's appropriate for the > particular > backend (PostgreSQL mostly), with the correct quoting (because > I use > GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE when > opening the > connection). > > However, I don't always want an actual connection, because > OnlineGlom > then uses that SQL string with its own JDBC Java API. > > So is there any easy way to get that SQL string without > actually > connecting to the server? gda_statement_to_sql() seems to > ignore the > connection and the quoting for case-sensitivity. > http://developer.gnome.org/libgda/unstable/GdaStatement.html#gda-statement-to-sql > > There is no easy way of doing this. After a quick analysis, the best > to implement this feature (easiest to use and clean solution) would be > to allow one to create GdaConnection objects but with the connection > closed (which is in fact very easy to do). You could then use the > gda_connection_statement_to_sql() normally, and then either discard > the connection, or call gda_connection_open() if you need to execute > statements. Would it suit your needs? I guess that would work. It would solve my problem. I was thinking that I should somehow call the appropriate code in the provider without using a connection. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From vmalerba@gmail.com Wed Nov 9 21:46:37 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B02277501D9 for ; Wed, 9 Nov 2011 21:46:37 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ONAHiiT314qO for ; Wed, 9 Nov 2011 21:46:34 +0000 (UTC) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by menubar.gnome.org (Postfix) with ESMTP id 5D1107501D4 for ; Wed, 9 Nov 2011 21:46:25 +0000 (UTC) Received: by yenl2 with SMTP id l2so229725yen.27 for ; Wed, 09 Nov 2011 13:46:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Axc2Cd3ofm2fDJgV7bysjDQqW5mPSgH5V21PX+7nt/A=; b=ueoAA0b12xqGU798VhLKxcch8HpFPWdAz8m5/gT3/rediV45+GcfnhY6sGuZ7oBs9f oKAY+ku9VTIPK/JOCT2Nf8Q1/lxjnldophfaMroUbyi+m9jlZ+ei4aFJw7MtVD7V3NFd l1qB4GlY4qY8dnneOPUdkcoe7l97+ftHEv9o0= MIME-Version: 1.0 Received: by 10.146.110.15 with SMTP id i15mr1895809yac.19.1320875184487; Wed, 09 Nov 2011 13:46:24 -0800 (PST) Received: by 10.147.170.6 with HTTP; Wed, 9 Nov 2011 13:46:24 -0800 (PST) In-Reply-To: <1320842209.2277.30.camel@murrayc-desktop> References: <1320833162.2277.22.camel@murrayc-desktop> <1320842209.2277.30.camel@murrayc-desktop> Date: Wed, 9 Nov 2011 22:46:24 +0100 Message-ID: From: Vivien Malerba To: Murray Cumming Content-Type: multipart/alternative; boundary=000e0cd570fe29fe5104b1543828 Cc: gnome-db-list Subject: Re: [gnome-db] gda_connection_statement_to_sql() without a connection X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 21:46:37 -0000 --000e0cd570fe29fe5104b1543828 Content-Type: text/plain; charset=ISO-8859-1 On 9 November 2011 13:36, Murray Cumming wrote: > On Wed, 2011-11-09 at 13:27 +0100, Vivien Malerba wrote: > > > > > > On 9 November 2011 11:06, Murray Cumming wrote: > > In libglom, I'm using > > gda_connection_statement_to_sql() > > > http://developer.gnome.org/libgda/unstable/GdaConnection.html#gda-connection-statement-to-sql > > to generate a SQL statement that's appropriate for the > > particular > > backend (PostgreSQL mostly), with the correct quoting (because > > I use > > GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE when > > opening the > > connection). > > > > However, I don't always want an actual connection, because > > OnlineGlom > > then uses that SQL string with its own JDBC Java API. > > > > So is there any easy way to get that SQL string without > > actually > > connecting to the server? gda_statement_to_sql() seems to > > ignore the > > connection and the quoting for case-sensitivity. > > > http://developer.gnome.org/libgda/unstable/GdaStatement.html#gda-statement-to-sql > > > > There is no easy way of doing this. After a quick analysis, the best > > to implement this feature (easiest to use and clean solution) would be > > to allow one to create GdaConnection objects but with the connection > > closed (which is in fact very easy to do). You could then use the > > gda_connection_statement_to_sql() normally, and then either discard > > the connection, or call gda_connection_open() if you need to execute > > statements. Would it suit your needs? > > I guess that would work. It would solve my problem. > It's now in commit http://git.gnome.org/browse/libgda/commit/?id=722edc0ce116466e2193304b539a632d6478f6ce > > I was thinking that I should somehow call the appropriate code in the > provider without using a connection. > I thought too, but the GdaConnection object is used as well in the process, hence the better solution of connections created closed. Regards, Vivien --000e0cd570fe29fe5104b1543828 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 9 November 2011 13:36, Murray Cumming= <murrayc@murra= yc.com> wrote:
On Wed, 2011-11-09 at 13:27 +0100, = Vivien Malerba wrote:
>
>
> On 9 November 2011 11:06, Murray Cumming <murrayc@murrayc.com> wrote:
> =A0 =A0 =A0 =A0 In libglom, I'm using
> =A0 =A0 =A0 =A0 gda_connection_statement_to_sql()
> =A0 =A0 =A0 =A0 http:= //developer.gnome.org/libgda/unstable/GdaConnection.html#gda-connection-sta= tement-to-sql
> =A0 =A0 =A0 =A0 to generate a SQL statement that's appropriate for= the
> =A0 =A0 =A0 =A0 particular
> =A0 =A0 =A0 =A0 backend (PostgreSQL mostly), with the correct quoting = (because
> =A0 =A0 =A0 =A0 I use
> =A0 =A0 =A0 =A0 GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE = when
> =A0 =A0 =A0 =A0 opening the
> =A0 =A0 =A0 =A0 connection).
>
> =A0 =A0 =A0 =A0 However, I don't always want an actual connection,= because
> =A0 =A0 =A0 =A0 OnlineGlom
> =A0 =A0 =A0 =A0 then uses that SQL string with its own JDBC Java API.<= br> >
> =A0 =A0 =A0 =A0 So is there any easy way to get that SQL string withou= t
> =A0 =A0 =A0 =A0 actually
> =A0 =A0 =A0 =A0 connecting to the server? gda_statement_to_sql() seems= to
> =A0 =A0 =A0 =A0 ignore the
> =A0 =A0 =A0 =A0 connection and the quoting for case-sensitivity.
> =A0 =A0 =A0 =A0 http://developer.= gnome.org/libgda/unstable/GdaStatement.html#gda-statement-to-sql
>
> There is no easy way of doing this. After a quick analysis, the best > to implement this feature (easiest to use and clean solution) would be=
> to allow one to create GdaConnection objects but with the connection > closed (which is in fact very easy to do). You could then use the
> gda_connection_statement_to_sql() normally, and then either discard > the connection, or call gda_connection_open() if you need to execute > statements. Would it suit your needs?

I guess that would work. It would solve my problem.

I was thinking that I should somehow call the appropriate code in the
provider without using a connection.

I thought too= , but the GdaConnection object is used as well in the process, hence the be= tter solution of connections created closed.

Regards,

Vivien =
--000e0cd570fe29fe5104b1543828-- From murrayc@murrayc.com Thu Nov 10 11:45:02 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C92B175005F for ; Thu, 10 Nov 2011 11:45:02 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id efnQEYZ3bJI6 for ; Thu, 10 Nov 2011 11:44:59 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id A94397500AA for ; Thu, 10 Nov 2011 11:44:51 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway2.nyi.mail.srv.osa (Postfix) with ESMTP id 0637320CFD; Thu, 10 Nov 2011 06:44:50 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 10 Nov 2011 06:44:50 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:mime-version; s=smtpout; bh=bQTdyeutH2Qo2b/fHBnz+NSHNJc=; b=RZWdQfVcelpG+qD8xJu4mObodhzu Eq9TfJvTbdWbZMih+SqOrUgzi5/dbdAf2yxHqGiwhk+XeNDkHFJgHbJDoHzuPaJ3 4l1x/47YjEegoKmV98OLV+j2iGh7D9601PyzvIlSYTMkLhEqXJq2wZhqS9A6EcCi VGBkQhBFXN6Yj0w= X-Sasl-enc: rSa1wz9G3qv0TMdIPAbKfMZRo3//oDtpRiAZxvhml5Yq 1320925489 Received: from [192.168.178.24] (ppp-188-174-120-200.dynamic.mnet-online.de [188.174.120.200]) by mail.messagingengine.com (Postfix) with ESMTPSA id 435A48E00E8; Thu, 10 Nov 2011 06:44:49 -0500 (EST) Message-ID: <1320925487.2208.10.camel@murrayc-desktop> From: Murray Cumming To: Vivien Malerba Date: Thu, 10 Nov 2011 12:44:47 +0100 In-Reply-To: References: <1320833162.2277.22.camel@murrayc-desktop> <1320842209.2277.30.camel@murrayc-desktop> Content-Type: multipart/mixed; boundary="=-1lRzuvNBxl9RoU61ugjL" X-Mailer: Evolution 3.2.0- Mime-Version: 1.0 Cc: gnome-db-list Subject: Re: [gnome-db] gda_connection_statement_to_sql() without a connection X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2011 11:45:03 -0000 --=-1lRzuvNBxl9RoU61ugjL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Wed, 2011-11-09 at 22:46 +0100, Vivien Malerba wrote: > > It's now in commit > http://git.gnome.org/browse/libgda/commit/?id=722edc0ce116466e2193304b539a632d6478f6ce > > Thanks. I made a small correction: http://git.gnome.org/browse/libgda/commit/?id=1e30ad6fac17693df3768660dd44a30358d629f7 However, there is now a crash when calling I could probably create a C test case, but this is what valgrind tells me when I use it in Glom: ==7157== Process terminating with default action of signal 11 (SIGSEGV) ==7157== Access not within mapped region at address 0x0 ==7157== at 0x67D1FB6: _gda_postgres_meta__btypes (gda-postgres-meta.c:355) ==7157== by 0x4863AA2: local_meta_update (gda-connection.c:4339) ==7157== by 0x4866332: gda_connection_update_meta_store (gda-connection.c:5190) ==7157== by 0x42B6EBF: Gnome::Gda::Connection::update_meta_store_data_types() (connection.cc:407) [snip] That crash can be fixed with the attached patch but then gda_connection_statement_to_sql() warns like so: sys:1: Warning: g_string_append: assertion `val != NULL' failed at this point because gda_sql_identifier_quote() returns NULL: #1 0x00d4a470 in g_return_if_fail_warning (log_domain=0xdcdda3 "GLib", pretty_function=0xdcdf8a "g_string_append", expression=0xdcddf2 "val != NULL") at gmessages.c:800 #2 0x00d64e29 in g_string_append (string=0x84dd870, val=0x0) at gstring.c:565 #3 0x009a8064 in default_render_expr (expr=0x84b27c8, context=0xbfffe894, is_default=0x0, is_null=0x0, error=0xbfffe9dc) at gda-statement.c:1505 #4 0x009a9756 in default_render_select_field (field=0x8425e98, context=0xbfffe894, error=0xbfffe9dc) at gda-statement.c:2007 #5 0x009a71fa in default_render_select (stmt=0x832bd30, context=0xbfffe894, error=0xbfffe9dc) at gda-statement.c:1176 #6 0x009a5ece in gda_statement_to_sql_real (stmt=0x84e1600, context=0xbfffe894, error=0xbfffe9dc) at gda-statement.c:751 #7 0x009a62fa in gda_statement_to_sql_extended (stmt=0x84e1600, cnc=0x8224470, params=0x0, flags=GDA_STATEMENT_SQL_PRETTY, params_used=0x0, error=0xbfffe9dc) at gda-statement.c:845 #8 0x0093ca4f in gda_connection_statement_to_sql (cnc=0x8224470, stmt=0x84e1600, params=0x0, flags=GDA_STATEMENT_SQL_PRETTY, params_used=0x0, error=0xbfffe9dc) at gda-connection.c:2811 So the resulting query looks like this: SELECT ., . FROM WHERE . = 'Born To Run' > -- murrayc@murrayc.com www.murrayc.com www.openismus.com --=-1lRzuvNBxl9RoU61ugjL Content-Disposition: attachment; filename="libgda_postgresreusable_fix.patch" Content-Type: text/x-patch; name="libgda_postgresreusable_fix.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit diff --git a/providers/reuseable/postgres/gda-postgres-meta.c b/providers/reuseable/postgres/gda-postgres-meta.c index 1a46a36..df0a78a 100644 --- a/providers/reuseable/postgres/gda-postgres-meta.c +++ b/providers/reuseable/postgres/gda-postgres-meta.c @@ -311,7 +311,7 @@ _gda_postgres_provider_meta_init (GdaServerProvider *provider) #endif } -#define GDA_POSTGRES_GET_REUSEABLE_DATA(cdata) (* ((GdaPostgresReuseable**) (cdata))) +#define GDA_POSTGRES_GET_REUSEABLE_DATA(cdata) ( cdata ? * ((GdaPostgresReuseable**) (cdata)) : NULL ) gboolean _gda_postgres_meta__info (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc, --=-1lRzuvNBxl9RoU61ugjL-- From vmalerba@gmail.com Thu Nov 10 15:37:47 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8BAAA75013F for ; Thu, 10 Nov 2011 15:37:47 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ra9CMozA5NE0 for ; Thu, 10 Nov 2011 15:37:43 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 0AB7675000A for ; Thu, 10 Nov 2011 15:37:34 +0000 (UTC) Received: by ggnk3 with SMTP id k3so4785833ggn.27 for ; Thu, 10 Nov 2011 07:37:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ewBH1dcZTAlDZvyw8F5LeoRmF77tnlvlNcMJjuDr+Dk=; b=EYw3WV6MlvXwXTp4cz/jiM8LEj5EJAq2s5oMe8MYab8Et3YPJJDAmnhhs55THURbWz BJ9YZU/ablamy3Wv/Cr2M8fqvYDIiQfKeSsW7guHzl4YbG90mYUhkqsShdywj3tYzoCj 8HrR+ZGYNVpJ/A+sID1lQKY5fkbosX938AU+4= MIME-Version: 1.0 Received: by 10.146.171.16 with SMTP id t16mr1717805yae.29.1320939453517; Thu, 10 Nov 2011 07:37:33 -0800 (PST) Received: by 10.147.170.6 with HTTP; Thu, 10 Nov 2011 07:37:33 -0800 (PST) In-Reply-To: <1320925487.2208.10.camel@murrayc-desktop> References: <1320833162.2277.22.camel@murrayc-desktop> <1320842209.2277.30.camel@murrayc-desktop> <1320925487.2208.10.camel@murrayc-desktop> Date: Thu, 10 Nov 2011 16:37:33 +0100 Message-ID: From: Vivien Malerba To: Murray Cumming Content-Type: multipart/alternative; boundary=000e0cd4c452e5911f04b1632e16 Cc: gnome-db-list Subject: Re: [gnome-db] gda_connection_statement_to_sql() without a connection X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2011 15:37:47 -0000 --000e0cd4c452e5911f04b1632e16 Content-Type: text/plain; charset=ISO-8859-1 On 10 November 2011 12:44, Murray Cumming wrote: > On Wed, 2011-11-09 at 22:46 +0100, Vivien Malerba wrote: > > > > > It's now in commit > > > http://git.gnome.org/browse/libgda/commit/?id=722edc0ce116466e2193304b539a632d6478f6ce > > > > > Thanks. I made a small correction: > > http://git.gnome.org/browse/libgda/commit/?id=1e30ad6fac17693df3768660dd44a30358d629f7 > > However, there is now a crash when calling > > > I could probably create a C test case, but this is what valgrind tells > me when I use it in Glom: > > ==7157== Process terminating with default action of signal 11 (SIGSEGV) > ==7157== Access not within mapped region at address 0x0 > ==7157== at 0x67D1FB6: _gda_postgres_meta__btypes > (gda-postgres-meta.c:355) > ==7157== by 0x4863AA2: local_meta_update (gda-connection.c:4339) > ==7157== by 0x4866332: gda_connection_update_meta_store > (gda-connection.c:5190) > ==7157== by 0x42B6EBF: > Gnome::Gda::Connection::update_meta_store_data_types() > (connection.cc:407) > [snip] > > > That crash can be fixed with the attached patch but then > gda_connection_statement_to_sql() warns like so: > sys:1: Warning: g_string_append: assertion `val != NULL' failed > at this point because gda_sql_identifier_quote() returns NULL: > > #1 0x00d4a470 in g_return_if_fail_warning (log_domain=0xdcdda3 "GLib", > pretty_function=0xdcdf8a "g_string_append", > expression=0xdcddf2 "val != NULL") at gmessages.c:800 > #2 0x00d64e29 in g_string_append (string=0x84dd870, val=0x0) at > gstring.c:565 > #3 0x009a8064 in default_render_expr (expr=0x84b27c8, > context=0xbfffe894, is_default=0x0, is_null=0x0, error=0xbfffe9dc) > at gda-statement.c:1505 > #4 0x009a9756 in default_render_select_field (field=0x8425e98, > context=0xbfffe894, error=0xbfffe9dc) at gda-statement.c:2007 > #5 0x009a71fa in default_render_select (stmt=0x832bd30, > context=0xbfffe894, error=0xbfffe9dc) at gda-statement.c:1176 > #6 0x009a5ece in gda_statement_to_sql_real (stmt=0x84e1600, > context=0xbfffe894, error=0xbfffe9dc) at gda-statement.c:751 > #7 0x009a62fa in gda_statement_to_sql_extended (stmt=0x84e1600, > cnc=0x8224470, params=0x0, flags=GDA_STATEMENT_SQL_PRETTY, > params_used=0x0, error=0xbfffe9dc) at gda-statement.c:845 > #8 0x0093ca4f in gda_connection_statement_to_sql (cnc=0x8224470, > stmt=0x84e1600, params=0x0, flags=GDA_STATEMENT_SQL_PRETTY, > params_used=0x0, error=0xbfffe9dc) at gda-connection.c:2811 > > > So the resulting query looks like this: > SELECT > ., > . > FROM > WHERE . = 'Born To Run' > > > > Ok, I'll check this ASAP. Vivien --000e0cd4c452e5911f04b1632e16 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 10 November 2011 12:44, Murray Cummin= g <murrayc@murr= ayc.com> wrote:
On Wed, 2011-11-09 at 22:46 +0100, Vivien Malerba wrote:<= br>
>
> It's now in commit
> http://git.gnome.org/brows= e/libgda/commit/?id=3D722edc0ce116466e2193304b539a632d6478f6ce
>
>
Thanks. I made a small correction:
http://git.gnome.org/browse/lib= gda/commit/?id=3D1e30ad6fac17693df3768660dd44a30358d629f7

However, there is now a crash when calling


I could probably create a C test case, but this is what valgrind tells
me when I use it in Glom:

=3D=3D7157=3D=3D Process terminating with default action of signal 11 (SIGS= EGV)
=3D=3D7157=3D=3D =A0Access not within mapped region at address 0x0
=3D=3D7157=3D=3D =A0 =A0at 0x67D1FB6: _gda_postgres_meta__btypes
(gda-postgres-meta.c:355)
=3D=3D7157=3D=3D =A0 =A0by 0x4863AA2: local_meta_update (gda-connection.c:4= 339)
=3D=3D7157=3D=3D =A0 =A0by 0x4866332: gda_connection_update_meta_store
(gda-connection.c:5190)
=3D=3D7157=3D=3D =A0 =A0by 0x42B6EBF:
Gnome::Gda::Connection::update_meta_store_data_types()
(connection.cc:407)
[snip]


That crash can be fixed with the attached patch but then
gda_connection_statement_to_sql() warns like so:
=A0sys:1: Warning: g_string_append: assertion `val !=3D NULL' failed at this point because gda_sql_identifier_quote() returns NULL:

#1 =A00x00d4a470 in g_return_if_fail_warning (log_domain=3D0xdcdda3 "G= Lib",
pretty_function=3D0xdcdf8a "g_string_append",
=A0 =A0expression=3D0xdcddf2 "val !=3D NULL") at gmessages.c:800=
#2 =A00x00d64e29 in g_string_append (string=3D0x84dd870, val=3D0x0) at
gstring.c:565
#3 =A00x009a8064 in default_render_expr (expr=3D0x84b27c8,
context=3D0xbfffe894, is_default=3D0x0, is_null=3D0x0, error=3D0xbfffe9dc)<= br> =A0 =A0at gda-statement.c:1505
#4 =A00x009a9756 in default_render_select_field (field=3D0x8425e98,
context=3D0xbfffe894, error=3D0xbfffe9dc) at gda-statement.c:2007
#5 =A00x009a71fa in default_render_select (stmt=3D0x832bd30,
context=3D0xbfffe894, error=3D0xbfffe9dc) at gda-statement.c:1176
#6 =A00x009a5ece in gda_statement_to_sql_real (stmt=3D0x84e1600,
context=3D0xbfffe894, error=3D0xbfffe9dc) at gda-statement.c:751
#7 =A00x009a62fa in gda_statement_to_sql_extended (stmt=3D0x84e1600,
cnc=3D0x8224470, params=3D0x0, flags=3DGDA_STATEMENT_SQL_PRETTY,
=A0 =A0params_used=3D0x0, error=3D0xbfffe9dc) at gda-statement.c:845
#8 =A00x0093ca4f in gda_connection_statement_to_sql (cnc=3D0x8224470,
stmt=3D0x84e1600, params=3D0x0, flags=3DGDA_STATEMENT_SQL_PRETTY,
=A0 =A0params_used=3D0x0, error=3D0xbfffe9dc) at gda-connection.c:2811


So the resulting query looks like this:
SELECT
=A0 =A0 =A0 =A0.,
=A0 =A0 =A0 =A0.
FROM
WHERE . =3D 'Born To Run'

>

Ok, I'll check this= ASAP.

Vivien
--000e0cd4c452e5911f04b1632e16-- From murrayc@murrayc.com Fri Nov 11 10:37:50 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0B6D47501EE for ; Fri, 11 Nov 2011 10:37:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.523 X-Spam-Level: X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1rJLlG+YkVFg for ; Fri, 11 Nov 2011 10:37:43 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 9F5687501E7 for ; Fri, 11 Nov 2011 10:37:35 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id A4C8920EDF; Fri, 11 Nov 2011 05:37:33 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 11 Nov 2011 05:37:33 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:date :content-type:content-transfer-encoding:mime-version; s=smtpout; bh=kE33+tYYxj/mUPoBcPF4c66z/RM=; b=oO+PYctFacHADiIDZ3aujcYOZD1E kw24w8HuLTV1ekEUuhzywKe2kBca3lSiwS9qSCiPbysrYwBQvdU5x/o24U4Yq4tJ 7Njn6kWa7/u6rXiv/pVhRCkba2Br8jqcK5KnoECAW7RF9eWMy/FqazR0gjyMviam ard2z+mgRVoIQaM= X-Sasl-enc: ekMpKwqaaqF+Xuq75VDYhBgPdvBgCsCkrKBCvBCH58Lb 1321007853 Received: from [192.168.178.24] (ppp-188-174-118-89.dynamic.mnet-online.de [188.174.118.89]) by mail.messagingengine.com (Postfix) with ESMTPSA id 24B7F4824E8 for ; Fri, 11 Nov 2011 05:37:33 -0500 (EST) Message-ID: <1321007851.2353.10.camel@murrayc-desktop> From: Murray Cumming To: gnome-db-list Date: Fri, 11 Nov 2011 11:37:31 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.0- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2011 10:37:50 -0000 Is this API change appropriate in the stable libgda 5.0? http://git.gnome.org/browse/libgda/commit/?id=3b5c67b0535093c91b32dfa08bb02b9f9b39474b Hopefully the use of GSEAL just makes it an API (rather than ABI) change, but still, it is unexpected. The new functions should have @since tags in their documentation. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From esodan@gmail.com Fri Nov 11 15:35:26 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 359A27500DE for ; Fri, 11 Nov 2011 15:35:26 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OofpO3PuivoX for ; Fri, 11 Nov 2011 15:35:24 +0000 (UTC) Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by menubar.gnome.org (Postfix) with ESMTP id BBCFB75002C for ; Fri, 11 Nov 2011 15:35:15 +0000 (UTC) Received: by wwi18 with SMTP id 18so2224642wwi.27 for ; Fri, 11 Nov 2011 07:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5scSJTi48m8jiSlDCGdsr1HyDe0vamtoPT29CesUrpk=; b=US96rPXpN15t2HSZfpJcV6bPqZP/GvCwhnsRWUw6HkImUwZB8mIWBWz4GaT1EKrr0J URQ2d0bSim0qxQBuj+Sc5uDrJBSSQpFxsVUlMU2EFsCtuAWlNZR7cN7jrw711VhXTVlA RTFW46Bg+TpZZo9tjn0rVHN3A3iBD08px5KAs= MIME-Version: 1.0 Received: by 10.227.205.213 with SMTP id fr21mr8205935wbb.16.1321025713607; Fri, 11 Nov 2011 07:35:13 -0800 (PST) Received: by 10.216.163.82 with HTTP; Fri, 11 Nov 2011 07:35:13 -0800 (PST) In-Reply-To: References: <1321007851.2353.10.camel@murrayc-desktop> Date: Fri, 11 Nov 2011 09:35:13 -0600 Message-ID: From: Daniel Espinosa To: gnome-db-list@gnome.org Content-Type: text/plain; charset=UTF-8 Subject: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2011 15:35:26 -0000 2011/11/11 Murray Cumming : > Is this API change appropriate in the stable libgda 5.0? > http://git.gnome.org/browse/libgda/commit/?id=3b5c67b0535093c91b32dfa08bb02b9f9b39474b > > Hopefully the use of GSEAL just makes it an API (rather than ABI) > change, but still, it is unexpected. GSEAL() macro doesn't modify API/ABI. Any one compiling the source doesn't note any change nor applications using it. This macro is a convenience at compile time and is just to check if you are using the accessors not direct access to the sealed struct. In order to see if the applications aren't using the now opaque struct of GdaNumeric's members, when you compile with make CFLAGS+="-DGSEAL_ENABLE" any code accessing directly to GdaNumeric members will fail at compile time. You'll advised to use accessors. GDA master doesn't compile with GSEAL_ENABLE. This will be a process, first fixing gda-value.c/.h and then providers. I need to add documentation in order to explain this. > > The new functions should have @since tags in their documentation. > I'm so sorry, I'll take care to add this tags and other recommendations made by Vivien on codding. > -- > murrayc@murrayc.com > www.murrayc.com > www.openismus.com > > _______________________________________________ > gnome-db-list mailing list > gnome-db-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-db-list > From esodan@gmail.com Fri Nov 11 17:43:26 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 046CA75008A for ; Fri, 11 Nov 2011 17:43:26 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FE2KcHJVPUqA for ; Fri, 11 Nov 2011 17:43:23 +0000 (UTC) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by menubar.gnome.org (Postfix) with ESMTP id 2221775002C for ; Fri, 11 Nov 2011 17:43:14 +0000 (UTC) Received: by wyf23 with SMTP id 23so3293143wyf.27 for ; Fri, 11 Nov 2011 09:43:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KAqWEDV0vxZtyK5qmBIaK/86XoTIeytZWppGjmZoMNg=; b=fv57AcFJBPYRTRZDmEVNBFLHRUh+3h/RD+n/jHYdVd0cyNTRJbqk7kRVgTtBXJVvPC sWKyVomXB1RZ5n7BSOwZbNTDkyOJzL/LHKRavrQ1Z8OGWaGem/GWrm1sxkjUFH+8AV4o TEwOMdHKrq5hcYP3hndZfy8Cx+I3rvqR2wPvQ= MIME-Version: 1.0 Received: by 10.216.14.206 with SMTP id d56mr427234wed.33.1321033393212; Fri, 11 Nov 2011 09:43:13 -0800 (PST) Received: by 10.216.163.82 with HTTP; Fri, 11 Nov 2011 09:43:13 -0800 (PST) In-Reply-To: References: <1321007851.2353.10.camel@murrayc-desktop> Date: Fri, 11 Nov 2011 11:43:13 -0600 Message-ID: From: Daniel Espinosa To: gnome-db-list@gnome.org Content-Type: text/plain; charset=UTF-8 Subject: Re: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2011 17:43:26 -0000 I've added documention to set Since: tags. Added symbols to libgda.symbols and apply some coding styles. See at: http://git.gnome.org/browse/libgda/commit/?id=dda8de22e9f0b2e173694c34a154041a4c92acd3 2011/11/11 Daniel Espinosa : > 2011/11/11 Murray Cumming : >> Is this API change appropriate in the stable libgda 5.0? >> http://git.gnome.org/browse/libgda/commit/?id=3b5c67b0535093c91b32dfa08bb02b9f9b39474b >> >> Hopefully the use of GSEAL just makes it an API (rather than ABI) >> change, but still, it is unexpected. > > GSEAL() macro doesn't modify API/ABI. Any one compiling the source > doesn't note any change nor applications using it. This macro is a > convenience at compile time and is just to check if you are using the > accessors not direct access to the sealed struct. > > In order to see if the applications aren't using the now opaque struct > of GdaNumeric's members, when you compile with > > make CFLAGS+="-DGSEAL_ENABLE" > > any code accessing directly to GdaNumeric members will fail at compile > time. You'll advised to use accessors. > > GDA master doesn't compile with GSEAL_ENABLE. This will be a process, > first fixing gda-value.c/.h and then providers. > > I need to add documentation in order to explain this. > >> >> The new functions should have @since tags in their documentation. >> > > I'm so sorry, I'll take care to add this tags and other > recommendations made by Vivien on codding. > >> -- >> murrayc@murrayc.com >> www.murrayc.com >> www.openismus.com >> >> _______________________________________________ >> gnome-db-list mailing list >> gnome-db-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gnome-db-list >> > From murrayc@murrayc.com Fri Nov 11 21:29:34 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5543675009E for ; Fri, 11 Nov 2011 21:29:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S9tvB-++97J8 for ; Fri, 11 Nov 2011 21:29:32 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 0108475002C for ; Fri, 11 Nov 2011 21:29:23 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 5368B20E4B; Fri, 11 Nov 2011 16:29:22 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Fri, 11 Nov 2011 16:29:22 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:content-transfer-encoding :mime-version; s=smtpout; bh=hlVsXQcQOuHe/cDUFlHAHNM9sCM=; b=AUb w4WuBxakTHqZZDO0B/S4ry48bcZ5LMdvTzbH7Wnhl599/d3Y0GIul6Ml2s0lFi1N IoHSS4CQz4PqpiqGLtrZ5LDvJClMpJ9g2soFOcS3DOVWxc4aV5b+bDz2nmZxYnwV uVptOOaZUi8CxzGKED6IbxHDqXpoPamIXkJ1nk6k= X-Sasl-enc: OEEBtkJaS6Wq4lHaYWgw2vEpGV+mM2sGOtDkpS0Xokv6 1321046961 Received: from [192.168.178.34] (ppp-188-174-45-52.dynamic.mnet-online.de [188.174.45.52]) by mail.messagingengine.com (Postfix) with ESMTPSA id 81B758E00E8; Fri, 11 Nov 2011 16:29:21 -0500 (EST) Message-ID: <1321046959.5588.2.camel@localhost> From: Murray Cumming To: Daniel Espinosa Date: Fri, 11 Nov 2011 22:29:19 +0100 In-Reply-To: References: <1321007851.2353.10.camel@murrayc-desktop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1 (3.2.1-2.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2011 21:29:34 -0000 OK. The API certainly is much nicer this way. I wonder if this patch would be an ABI or API break. It makes wrapping GdaNumeric from language bindings much easier - in this case libgdamm. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From murrayc@murrayc.com Fri Nov 11 21:30:15 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9470375009E for ; Fri, 11 Nov 2011 21:30:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.723 X-Spam-Level: X-Spam-Status: No, score=-1.723 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FRT_ADOBE2=0.877, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mIDpmZNgKayN for ; Fri, 11 Nov 2011 21:30:14 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 2004175002C for ; Fri, 11 Nov 2011 21:30:06 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id BD21520993; Fri, 11 Nov 2011 16:30:04 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute3.internal (MEProxy); Fri, 11 Nov 2011 16:30:04 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:mime-version; s=smtpout; bh=SkJvkn1gQO610UmSKSgVvG8ZkDg=; b=dpCSWujF5Fr7Je3yM9SX8ZqqWVSN ivoGyPtod1L5Wnubti13aomVGFfEdjU1rZjSbIYR7ctjXeoqOU/fl1ZI6QhMvGzW 3y8Hqwy5zrLw/Y3ZXb4USDWqLGjnRv2OEvreXjMjkF/vDa2aWGMNYD68d2ubg9yE skJkxZIoOs5hvmQ= X-Sasl-enc: 7zhu38knxctqiwM3L7RXVMb8f7CLHkmgQB8df0uEQu91 1321047004 Received: from [192.168.178.34] (ppp-188-174-45-52.dynamic.mnet-online.de [188.174.45.52]) by mail.messagingengine.com (Postfix) with ESMTPSA id BE3AF8E00AE; Fri, 11 Nov 2011 16:30:03 -0500 (EST) Message-ID: <1321047001.5588.3.camel@localhost> From: Murray Cumming To: Daniel Espinosa Date: Fri, 11 Nov 2011 22:30:01 +0100 In-Reply-To: <1321046959.5588.2.camel@localhost> References: <1321007851.2353.10.camel@murrayc-desktop> <1321046959.5588.2.camel@localhost> Content-Type: multipart/mixed; boundary="=-Si1fJksTRhw6EDShoyy1" X-Mailer: Evolution 3.2.1 (3.2.1-2.fc16) Mime-Version: 1.0 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2011 21:30:15 -0000 --=-Si1fJksTRhw6EDShoyy1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2011-11-11 at 22:29 +0100, Murray Cumming wrote: > OK. The API certainly is much nicer this way. > > I wonder if this patch would be an ABI or API break. It makes wrapping > GdaNumeric from language bindings much easier - in this case libgdamm. Sorry, here is the patch. -- murrayc@murrayc.com www.murrayc.com www.openismus.com --=-Si1fJksTRhw6EDShoyy1 Content-Disposition: attachment; filename="0001-GdaNumeric-Use-the-_-declaration-technique.patch" Content-Type: text/x-patch; name="0001-GdaNumeric-Use-the-_-declaration-technique.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit >From 37b83c9c37e9e35b1b7036a1b6e85666fe311a0f Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Fri, 11 Nov 2011 22:26:49 +0100 Subject: [PATCH] GdaNumeric: Use the _ declaration technique. This is what glib and GTK+ do. It allows the struct type to be pre-declared elsewhere, without including the header, and without causing a double declaration. --- libgda/gda-value.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libgda/gda-value.h b/libgda/gda-value.h index 98fb8b9..394f063 100644 --- a/libgda/gda-value.h +++ b/libgda/gda-value.h @@ -74,6 +74,9 @@ typedef struct { gdouble y; } GdaGeometricPoint; + +typedef struct _GdaNumeric GdaNumeric; + /** * GdaNumeric: * @number: a string representing a number @@ -88,14 +91,14 @@ typedef struct { * Set value func: gda_value_set_numeric * Get value func: gda_value_get_numeric */ -typedef struct { +struct _GdaNumeric { gchar* GSEAL(number); glong GSEAL(precision); glong GSEAL(width); /*< private >*/ gpointer reserved; /* reserved for future usage with GMP (http://gmplib.org/) */ -} GdaNumeric; +}; /** * GdaTime: -- 1.7.7 --=-Si1fJksTRhw6EDShoyy1-- From esodan@gmail.com Fri Nov 11 21:58:53 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B8C7875008A for ; Fri, 11 Nov 2011 21:58:53 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WKK1iuOay00e for ; Fri, 11 Nov 2011 21:58:52 +0000 (UTC) Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by menubar.gnome.org (Postfix) with ESMTP id EB7E875002C for ; Fri, 11 Nov 2011 21:58:43 +0000 (UTC) Received: by wwi18 with SMTP id 18so2555098wwi.27 for ; Fri, 11 Nov 2011 13:58:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wnsM7cqi5M2qk2W4VsNrsy9g6rvoFRghWCLf+8mmQDE=; b=pbNzRUFSSvkCb+dSmSUBPVTn943CkyGBa1ycI5wdJXHSmgZLRYmWDYy38zCqWCKnJ0 EkIvjFABMj4B7mAMZ04tG/pZ89ycMAIQq9P8s4+giY9ein+c7yW620LoqAv8PsOA73ZM +PXW/zgkdH4/SMft6UTFtdl9XW2asjyA+JP4k= MIME-Version: 1.0 Received: by 10.216.14.206 with SMTP id d56mr57558wed.33.1321048721730; Fri, 11 Nov 2011 13:58:41 -0800 (PST) Received: by 10.216.163.82 with HTTP; Fri, 11 Nov 2011 13:58:41 -0800 (PST) In-Reply-To: References: <1321007851.2353.10.camel@murrayc-desktop> <1321046959.5588.2.camel@localhost> <1321047001.5588.3.camel@localhost> Date: Fri, 11 Nov 2011 15:58:41 -0600 Message-ID: From: Daniel Espinosa To: gnome-db-list@gnome.org Content-Type: text/plain; charset=UTF-8 Subject: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2011 21:58:54 -0000 I'm not sure. But this patch will help to seal GdaNumeric, moving out in the future _GdaNumeric definition from public header and make it really an opaque struct. 2011/11/11 Murray Cumming : > On Fri, 2011-11-11 at 22:29 +0100, Murray Cumming wrote: >> OK. The API certainly is much nicer this way. >> >> I wonder if this patch would be an ABI or API break. It makes wrapping >> GdaNumeric from language bindings much easier - in this case libgdamm. > > Sorry, here is the patch. > > -- > murrayc@murrayc.com > www.murrayc.com > www.openismus.com > From esodan@gmail.com Sun Nov 13 02:55:59 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 66A7275000B for ; Sun, 13 Nov 2011 02:55:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V4mZe8vPMig2 for ; Sun, 13 Nov 2011 02:55:57 +0000 (UTC) Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by menubar.gnome.org (Postfix) with ESMTP id 7FB1B750009 for ; Sun, 13 Nov 2011 02:55:48 +0000 (UTC) Received: by wwi18 with SMTP id 18so3155966wwi.27 for ; Sat, 12 Nov 2011 18:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=EgtiXbodccs/zePZXG1lC3x/CKUj5nZyIcWcUL6ZLZ8=; b=jVrgqX7ZG3HIzEUl5myATiYBQQ7b9T0GipEzQF9m6i6asOUGEMfF3VA00ETU97l50X iF4yNbL44hLco6I5PisjB6DewKXZ426SrYJNk/vilq40BMwg4UL/5AqmsKMDO9AQ8tpJ TVCJLJFkFrJDi/WihkvH9fqOJgz+erwBA6rhg= MIME-Version: 1.0 Received: by 10.216.229.84 with SMTP id g62mr319206weq.55.1321152946080; Sat, 12 Nov 2011 18:55:46 -0800 (PST) Received: by 10.216.174.12 with HTTP; Sat, 12 Nov 2011 18:55:46 -0800 (PST) Date: Sat, 12 Nov 2011 20:55:46 -0600 Message-ID: From: Daniel Espinosa To: gnome-db-list@gnome.org Content-Type: text/plain; charset=UTF-8 Subject: [gnome-db] Is this a API/ABI break? X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2011 02:55:59 -0000 Moving parameters types from gpointer to GdaNumeric isn't a API/ABI break? See: http://git.gnome.org/browse/libgda/commit/?id=b6cca7870b996b10078947b1c71bb327ae83d266 From murrayc@murrayc.com Sun Nov 13 06:40:21 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ADCFC7500E8 for ; Sun, 13 Nov 2011 06:40:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id brqhFjXRyN9u for ; Sun, 13 Nov 2011 06:40:19 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 1D2D17500A3 for ; Sun, 13 Nov 2011 06:40:10 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id F05BC20980; Sun, 13 Nov 2011 01:40:08 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 13 Nov 2011 01:40:08 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:subject:message-id:from:to :mime-version:content-type:content-transfer-encoding; s=smtpout; bh=EbgYgTjRU84+iTR7fEL5Z6UZTPU=; b=jvTLRMdiMCAqKSfr5tSH5TnETba6 tS8RKumZRzH+6/GnM7VPX4nYPY2RR5xzKBmFXm4DF6vDQSg0GWonxhQsVVHjrU6k jpjN61H00X1eOK01j2nhXNRyE3g6K9Is2p4J5Olce4q2dI5mfuM+MEEE2n5FDew/ Hm3FhQ+8zlyi20E= X-Sasl-enc: 1bG1Dwk/EMK/qOIcvSXa2JeVnQCPQAGphhO1Mt5x+4Uf 1321166408 Received: from 192.168.178.28 (ppp-188-174-57-160.dynamic.mnet-online.de [188.174.57.160]) by mail.messagingengine.com (Postfix) with ESMTPSA id CCCA48E008C; Sun, 13 Nov 2011 01:40:07 -0500 (EST) Date: Sun, 13 Nov 2011 07:40:02 +0100 Message-ID: From: Murray Cumming To: Daniel Espinosa , gnome-db-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Subject: Re: [gnome-db] Is this a API/ABI break? X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2011 06:40:21 -0000 SXMgdGhlIHByZXZpb3VzIGFwaSBpbiBhIHJlbGVhc2U/Ck11cnJheQoKRGFuaWVsIEVzcGlub3Nh IDxlc29kYW5AZ21haWwuY29tPiB3cm90ZToKCj5Nb3ZpbmcgcGFyYW1ldGVycyB0eXBlcyBmcm9t IGdwb2ludGVyIHRvIEdkYU51bWVyaWMgaXNuJ3QgYSBBUEkvQUJJIGJyZWFrPyBTZWU6Cj4KPmh0 dHA6Ly9naXQuZ25vbWUub3JnL2Jyb3dzZS9saWJnZGEvY29tbWl0Lz9pZD1iNmNjYTc4NzBiOTk2 YjEwMDc4OTQ3YjFjNzFiYjMyN2FlODNkMjY2Cj5fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fXwo+Z25vbWUtZGItbGlzdCBtYWlsaW5nIGxpc3QKPmdub21lLWRi LWxpc3RAZ25vbWUub3JnCj5odHRwOi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9n bm9tZS1kYi1saXN0Cg== From murrayc@murrayc.com Sun Nov 13 21:04:54 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B23DB7500A2 for ; Sun, 13 Nov 2011 21:04:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xm3fjqv4OwUf for ; Sun, 13 Nov 2011 21:04:52 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 5B196750065 for ; Sun, 13 Nov 2011 21:04:44 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2FAF421075; Sun, 13 Nov 2011 16:04:42 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Sun, 13 Nov 2011 16:04:42 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:content-transfer-encoding :mime-version; s=smtpout; bh=7xqo/FixbloNM5t2nlMjkFRlekc=; b=qeY P56IwH3QiAQFLHE913/LT8oZLSIqYK89sfwy8Rpigc1BFkFHo6IvoAEAiQB2dquD TYSjJgxMu9EVBWrEwz8sfUWSuof1qOyIeqcAQbUl4izl3+7eJfPbHi2bVo+Kb1vj 7vSHUWboPLkwp04o+7vNu6cV6vPW8eWJO20gkoJo= X-Sasl-enc: F3Wbit6u0+T4STArynF0E0JrbjnxelQ3uhBf6KnwzUFa 1321218281 Received: from [192.168.178.34] (ppp-188-174-57-160.dynamic.mnet-online.de [188.174.57.160]) by mail.messagingengine.com (Postfix) with ESMTPSA id 75B978E00AF; Sun, 13 Nov 2011 16:04:41 -0500 (EST) Message-ID: <1321218279.4602.1.camel@localhost> From: Murray Cumming To: Vivien Malerba Date: Sun, 13 Nov 2011 22:04:39 +0100 In-Reply-To: References: <1320833162.2277.22.camel@murrayc-desktop> <1320842209.2277.30.camel@murrayc-desktop> <1320925487.2208.10.camel@murrayc-desktop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1 (3.2.1-2.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: gnome-db-list Subject: Re: [gnome-db] gda_connection_statement_to_sql() without a connection X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2011 21:04:54 -0000 On Thu, 2011-11-10 at 16:37 +0100, Vivien Malerba wrote: > Ok, I'll check this ASAP. Your recent commits seem to fix this for me. Thanks. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From murrayc@murrayc.com Sun Nov 13 21:06:03 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8B0A97500A2 for ; Sun, 13 Nov 2011 21:06:03 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y7U2XpXYpwNo for ; Sun, 13 Nov 2011 21:06:01 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 5D0B5750065 for ; Sun, 13 Nov 2011 21:05:53 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D31F0210C8; Sun, 13 Nov 2011 16:05:51 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 13 Nov 2011 16:05:51 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:content-transfer-encoding :mime-version; s=smtpout; bh=eRZBXLTuu86mYYlg1aiHNjgizJY=; b=ZmE ll2tu+JlYxddT4uxBIKpEqe6BwajEQgfrqj2beSbdJ+5bH9VoR3OgVKvG9IO6DUY ShLdPQJkvL/yfuDdrVSrryax56NmTmEOdI7ulzSbkJ12YiDgpfwn9klAjyjgSaMr OC7Y58xMI1xlOHQFP9GsrZ9JKW3ZXZF4W0+uzNc4= X-Sasl-enc: +nBQlLWGhPmyUGDK6ehifmyLqIuF1v1yfrmCSBIZk+sF 1321218351 Received: from [192.168.178.34] (ppp-188-174-57-160.dynamic.mnet-online.de [188.174.57.160]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2D1C98E0085; Sun, 13 Nov 2011 16:05:51 -0500 (EST) Message-ID: <1321218349.4602.2.camel@localhost> From: Murray Cumming To: Daniel Espinosa Date: Sun, 13 Nov 2011 22:05:49 +0100 In-Reply-To: <1321047001.5588.3.camel@localhost> References: <1321007851.2353.10.camel@murrayc-desktop> <1321046959.5588.2.camel@localhost> <1321047001.5588.3.camel@localhost> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1 (3.2.1-2.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2011 21:06:03 -0000 On Fri, 2011-11-11 at 22:30 +0100, Murray Cumming wrote: > On Fri, 2011-11-11 at 22:29 +0100, Murray Cumming wrote: > > OK. The API certainly is much nicer this way. > > > > I wonder if this patch would be an ABI or API break. It makes wrapping > > GdaNumeric from language bindings much easier - in this case libgdamm. > > Sorry, here is the patch. I think it's not an ABI break, so I'll push it. It makes life easier for language bindings. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From esodan@gmail.com Mon Nov 14 18:38:38 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 232F67500CD for ; Mon, 14 Nov 2011 18:38:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O9OVO8b6QeZI for ; Mon, 14 Nov 2011 18:38:35 +0000 (UTC) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by menubar.gnome.org (Postfix) with ESMTP id 38B997500B8 for ; Mon, 14 Nov 2011 18:38:26 +0000 (UTC) Received: by wyf23 with SMTP id 23so7019830wyf.27 for ; Mon, 14 Nov 2011 10:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EBlTBcQfV7LI+xqryZVr4HMcfEgzPKKxws9dK+89Ci0=; b=SoY18Ya+do4hFMDCVgI8cQeG2asK1vZFexaItOvpcSG4l36Ll5LEXozoGJLofX3OWe 5MQFtMbv/3d4ODSwbRq35XS7TUfhbSL65E1LOuzqYXD3DxReOq+vPu4lgwuXuMauNlqb zPz2OKlnfuOEyFLjJt0bUwfAFexpY/JGbANK8= MIME-Version: 1.0 Received: by 10.216.229.17 with SMTP id g17mr1289179weq.40.1321295904095; Mon, 14 Nov 2011 10:38:24 -0800 (PST) Received: by 10.216.174.12 with HTTP; Mon, 14 Nov 2011 10:38:23 -0800 (PST) In-Reply-To: <1321218349.4602.2.camel@localhost> References: <1321007851.2353.10.camel@murrayc-desktop> <1321046959.5588.2.camel@localhost> <1321047001.5588.3.camel@localhost> <1321218349.4602.2.camel@localhost> Date: Mon, 14 Nov 2011 12:38:23 -0600 Message-ID: From: Daniel Espinosa To: Murray Cumming Content-Type: text/plain; charset=UTF-8 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2011 18:38:38 -0000 Ok. Following with GdaNumeric sealing I've commit a patch to make GSEAL_ENABLE take effect using: make CFLAGS+="-DGSEAL_ENABLE=1" with it I've found an fixed internal SQLite and PostgreSQL providers. Others must be fixed when required (I didn't because I don't have them installed) The next structs to be sealed must be GdaBinary and GdaBlob, I think. 2011/11/13 Murray Cumming : > On Fri, 2011-11-11 at 22:30 +0100, Murray Cumming wrote: >> On Fri, 2011-11-11 at 22:29 +0100, Murray Cumming wrote: >> > OK. The API certainly is much nicer this way. >> > >> > I wonder if this patch would be an ABI or API break. It makes wrapping >> > GdaNumeric from language bindings much easier - in this case libgdamm. >> >> Sorry, here is the patch. > > I think it's not an ABI break, so I'll push it. It makes life easier for > language bindings. > > -- > murrayc@murrayc.com > www.murrayc.com > www.openismus.com > > From murrayc@murrayc.com Tue Nov 15 22:38:08 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC44475007F for ; Tue, 15 Nov 2011 22:38:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lHg8k8aulnSm for ; Tue, 15 Nov 2011 22:38:01 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 7872275007D for ; Tue, 15 Nov 2011 22:37:53 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D7566206A9; Tue, 15 Nov 2011 17:37:51 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 15 Nov 2011 17:37:51 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:content-transfer-encoding :mime-version; s=smtpout; bh=w6KmpC7ABLBdTVrE6lIgHY1sokY=; b=NYV 1Ugu2lA7awwnIbDFtDe7fJ/nX4t9Rnm6q/4e373EEJJm5oq+aj+FX48RXzXBrrZj ozA49OFo4sBJfaHl9cE4xXbEGrhBklVeSR2d/On4OTSRJkjT/9jE3UkKlVl91o7Q WOgGq1YMYUHDTb3bii+eFqIXWka5/rEBZyMbmiDs= X-Sasl-enc: cmKZbmWJZZr9GqYbea7t/FkatOykRQp8IxkBm33BA2mQ 1321396671 Received: from [192.168.178.34] (ppp-93-104-15-129.dynamic.mnet-online.de [93.104.15.129]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2786C482534; Tue, 15 Nov 2011 17:37:51 -0500 (EST) Message-ID: <1321396669.2064.5.camel@localhost> From: Murray Cumming To: Daniel Espinosa Date: Tue, 15 Nov 2011 23:37:49 +0100 In-Reply-To: References: <1321007851.2353.10.camel@murrayc-desktop> <1321046959.5588.2.camel@localhost> <1321047001.5588.3.camel@localhost> <1321218349.4602.2.camel@localhost> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1 (3.2.1-2.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] recent GSEAL addition X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2011 22:38:08 -0000 On Mon, 2011-11-14 at 12:38 -0600, Daniel Espinosa wrote: > Ok. > > Following with GdaNumeric sealing I've commit a patch to make > GSEAL_ENABLE take effect using: > > make CFLAGS+="-DGSEAL_ENABLE=1" > > with it I've found an fixed internal SQLite and PostgreSQL providers. > Others must be fixed when required (I didn't because I don't have them > installed) I noticed that libgda/handlers/gda-handler-numerical.c still uses GdaNumeric's struct definition: GdaNumeric numeric; ... numeric.precision = 0; numeric.width = 0; I noticed this when using the --enable-warnings=max option with autogen. I already added -DGSEAL_ENABLE to that in git master. That shows me: gda-handler-numerical.c: In function 'gda_handler_numerical_get_value_from_str': gda-handler-numerical.c:265:14: error: storage size of 'numeric' isn't known -- murrayc@murrayc.com www.murrayc.com www.openismus.com From murrayc@murrayc.com Wed Nov 16 12:07:26 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E1787750253 for ; Wed, 16 Nov 2011 12:07:26 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.523 X-Spam-Level: X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QDXSLZbRlv4G for ; Wed, 16 Nov 2011 12:07:24 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id B3B3D750107 for ; Wed, 16 Nov 2011 12:07:16 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 8FC5920C82; Wed, 16 Nov 2011 07:07:14 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 16 Nov 2011 07:07:14 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:date :content-type:content-transfer-encoding:mime-version; s=smtpout; bh=Vm1b7a06Wy6SzuUfwPU/lddjxb8=; b=aXgYiWmJV6ClEqeNUCVxO7MFHFqM 2CW+qhyHzuukJt8rQz74tH77FdFlLGsum/hF8E+wCXn6cWRR5vmrPeusXmUgpWG9 FdOhkurEV4xLjqH4UuBYIuNnGZWS9D/lqx2b83/ybLK45iiKrVsMdSDw1gJ0phWw 65LS5Ppk0dnaBzk= X-Sasl-enc: uIl7th7VuXPaYC7IfzmXg+w8pgv1dcjHJ2+pA/N1ywS6 1321445234 Received: from [192.168.178.24] (ppp-188-174-111-109.dynamic.mnet-online.de [188.174.111.109]) by mail.messagingengine.com (Postfix) with ESMTPSA id E75BC482478 for ; Wed, 16 Nov 2011 07:07:13 -0500 (EST) Message-ID: <1321445231.2345.0.camel@murrayc-desktop> From: Murray Cumming To: gnome-db-list Date: Wed, 16 Nov 2011 13:07:11 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.0- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: [gnome-db] Release, please X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2011 12:07:27 -0000 Once again, I could really use a libgda tarball release with the latest GdaNumeric changes. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From vmalerba@gmail.com Wed Nov 16 14:57:23 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 14A8975020A for ; Wed, 16 Nov 2011 14:57:23 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aysrn58EdnQV for ; Wed, 16 Nov 2011 14:57:16 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id B28FB75019B for ; Wed, 16 Nov 2011 14:57:08 +0000 (UTC) Received: by ywe9 with SMTP id 9so8203848ywe.27 for ; Wed, 16 Nov 2011 06:57:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+hdyKeyK0/7u/+g27RzFjT3dJuwPSh4ZRMYYefqn9Rc=; b=SZPP9J8X2QteBr65r+it3K8ZkxKvm1+w8L9G1vsHFAfX6tZ+qpmOlipAWQJkWYWDIA dcC0Ti4ZeIvHGxSzA/hBOTyewowPSbBDnHVWV1xHU37z0bHWYq8tuiN8gaDVlMgbfKK1 7EjNdrhNCNNXO4UrGkjU9J4tIrorCPwuo9Uos= MIME-Version: 1.0 Received: by 10.236.77.163 with SMTP id d23mr1966460yhe.34.1321455427309; Wed, 16 Nov 2011 06:57:07 -0800 (PST) Received: by 10.147.98.10 with HTTP; Wed, 16 Nov 2011 06:57:07 -0800 (PST) In-Reply-To: <1321445231.2345.0.camel@murrayc-desktop> References: <1321445231.2345.0.camel@murrayc-desktop> Date: Wed, 16 Nov 2011 15:57:07 +0100 Message-ID: From: Vivien Malerba To: Murray Cumming Content-Type: multipart/alternative; boundary=20cf300515a654cf2d04b1db519b Cc: gnome-db-list Subject: Re: [gnome-db] Release, please X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2011 14:57:23 -0000 --20cf300515a654cf2d04b1db519b Content-Type: text/plain; charset=ISO-8859-1 On 16 November 2011 13:07, Murray Cumming wrote: > Once again, I could really use a libgda tarball release with the latest > GdaNumeric changes. > Yes, but I first need to correct the problem I mentionned about thread-wrapped connections (ie. connections opened using the GDA_CONNECTION_OPTIONS_THREAD_ISOLATED flag. I hope by this WE. Vivien --20cf300515a654cf2d04b1db519b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 16 November 2011 13:07, Murray Cummin= g <murrayc@murr= ayc.com> wrote:
Once again, I could really use a libgda tarball release with the latest
GdaNumeric changes.

Yes, but I first need t= o correct the problem I mentionned about thread-wrapped connections (ie. co= nnections opened using the GDA_CONNECTION_OPTIONS_THREAD_ISOLATED flag.
I hope by this WE.

Vivien
--20cf300515a654cf2d04b1db519b-- From murrayc@murrayc.com Wed Nov 16 20:28:21 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F33E575022C for ; Wed, 16 Nov 2011 20:28:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ERgSUeSd3E8b for ; Wed, 16 Nov 2011 20:28:19 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 0DE7E7501E7 for ; Wed, 16 Nov 2011 20:28:10 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id A054A20A4B; Wed, 16 Nov 2011 15:28:09 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 16 Nov 2011 15:28:09 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:date :content-type:content-transfer-encoding:mime-version; s=smtpout; bh=8cRalW5yo+7qBa4YAsoj0xys13w=; b=OcwDAjeYkOcSD4td/7EaXNqX8ofT U6jiNWJhjJstRF2YoJA1wbjQX1qZCucVnb6JU+9Cjms5EoO15mm+VVgttvXMGuaP bqdzVUZWLLicj1vYzbdCjUYfsNn5C2tOJ7mqlom5sy9nG7VUlVslGVNM+GysYHbs eNsYz8VK2d2tuag= X-Sasl-enc: 76a2+/fm1QN/fhIsRwDL41ZA+XNOqeDUKDnPOWRqaHWT 1321475289 Received: from [192.168.178.34] (ppp-93-104-23-232.dynamic.mnet-online.de [93.104.23.232]) by mail.messagingengine.com (Postfix) with ESMTPSA id 13D344824B1 for ; Wed, 16 Nov 2011 15:28:08 -0500 (EST) Message-ID: <1321475287.11588.3.camel@localhost> From: Murray Cumming To: gnome-db-list Date: Wed, 16 Nov 2011 21:28:07 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1 (3.2.1-2.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: [gnome-db] libgda web connection? X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2011 20:28:21 -0000 Is anybody actually using this web provider thing in real life? http://git.gnome.org/browse/libgda/tree/providers/web/README Does it support cursor/iter based models? -- murrayc@murrayc.com www.murrayc.com www.openismus.com From vmalerba@gmail.com Thu Nov 17 13:34:16 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DF8E7500DE for ; Thu, 17 Nov 2011 13:34:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QB3cbiebXxu3 for ; Thu, 17 Nov 2011 13:34:13 +0000 (UTC) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by menubar.gnome.org (Postfix) with ESMTP id 394EB7500A4 for ; Thu, 17 Nov 2011 13:34:04 +0000 (UTC) Received: by yenl11 with SMTP id l11so1599043yen.27 for ; Thu, 17 Nov 2011 05:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4s44SAx36+4COxPRvEvkUqmrOwHhWgjaGpgPIdgUF8E=; b=uqchQnDE0kaBV3Y+R9FfbYTfXW+zFnFmKbi6KIRFWNqe5Oed7jbM74CsfT1x1n65XB vMyMoHGM5jjh2N4IGnXXpiXEIg6of3ZXMSY5YBR+Rgav6BNXU0JoJ8xI7clTwWkboy1O SAEPGQxAwsnEkNnOFTKkRU7I82Ze8bVz8UDcQ= MIME-Version: 1.0 Received: by 10.146.22.4 with SMTP id 4mr1131989yav.4.1321536843211; Thu, 17 Nov 2011 05:34:03 -0800 (PST) Received: by 10.147.98.10 with HTTP; Thu, 17 Nov 2011 05:34:03 -0800 (PST) In-Reply-To: <1321475287.11588.3.camel@localhost> References: <1321475287.11588.3.camel@localhost> Date: Thu, 17 Nov 2011 14:34:03 +0100 Message-ID: From: Vivien Malerba To: Murray Cumming Content-Type: multipart/alternative; boundary=000e0cd4c73218e56104b1ee467a Cc: gnome-db-list Subject: Re: [gnome-db] libgda web connection? X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 13:34:16 -0000 --000e0cd4c73218e56104b1ee467a Content-Type: text/plain; charset=ISO-8859-1 On 16 November 2011 21:28, Murray Cumming wrote: > Is anybody actually using this web provider thing in real life? > http://git.gnome.org/browse/libgda/tree/providers/web/README > > I've used it as some point but not at the moment, though it should work. Setting it up is a bit tricky, as some PHP scripts need to be installed on the Web server, see the providers/web/php/README for the setup (one day I should add this to the main documentation). > Does it support cursor/iter based models? It does, but it's not optimized as internally it uses a GdaDataModel created from an XML file. I guess some work should be necessary to make it properly support cursor based access without the random access. Also meta data fetching only works well for PostgreSQL and MySQL at the moment (again some not very difficult work should be put for other types of servers). Regards, Vivien --000e0cd4c73218e56104b1ee467a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 16 November 2011 21:28, Murray Cummin= g <murrayc@murr= ayc.com> wrote:
Is anybody actually using this web provider thing in real life?
http://git.gnome.org/browse/libgda/tree/providers/web/READM= E


I've used it as some point but not at the mom= ent, though it should work. Setting it up is a bit tricky, as some PHP scri= pts need to be installed on the Web server, see the providers/web/php/READM= E for the setup (one day I should add this to the main documentation).
=A0
Does it support cursor/iter based models?

It does, but= it's not optimized as internally it uses a GdaDataModel created from a= n XML file. I guess some work should be necessary to make it properly suppo= rt cursor based access without the random access.

Also meta data fetching only works well for PostgreSQL and MySQL at the= moment (again some not very difficult work should be put for other types o= f servers).

Regards,

Vivien
--000e0cd4c73218e56104b1ee467a-- From esodan@gmail.com Thu Nov 17 13:59:46 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AF18F75019B for ; Thu, 17 Nov 2011 13:59:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wsdlvAcEZhis for ; Thu, 17 Nov 2011 13:59:44 +0000 (UTC) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by menubar.gnome.org (Postfix) with ESMTP id B98B67500A4 for ; Thu, 17 Nov 2011 13:59:35 +0000 (UTC) Received: by wyf23 with SMTP id 23so3492368wyf.27 for ; Thu, 17 Nov 2011 05:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KmnOhy6LQRBX1o9lR6mB06o75S6XnTtKKZq5mwLAvvw=; b=nmkfB2x01FmxoFZBedQnMWlt5hekOozhfnAGdOdzVR0dLNNzSsLjBpN6AMv9O9/xho SZj5tCaSAhHovw9Cu19dFRDlcFF8fna4iF/Nvosp37wICFuFHPI4yU04xFHdYqJ3UnLG mC8nFv5KYKdaNhVL/KdgQxCOUvp05UQLL5Rw0= MIME-Version: 1.0 Received: by 10.216.229.17 with SMTP id g17mr1467601weq.40.1321538373524; Thu, 17 Nov 2011 05:59:33 -0800 (PST) Received: by 10.216.174.12 with HTTP; Thu, 17 Nov 2011 05:59:33 -0800 (PST) In-Reply-To: References: <1321475287.11588.3.camel@localhost> Date: Thu, 17 Nov 2011 07:59:33 -0600 Message-ID: From: Daniel Espinosa To: gnome-db-list@gnome.org Content-Type: text/plain; charset=UTF-8 Subject: [gnome-db] Fwd: libgda web connection? X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 13:59:47 -0000 PHP is getting support for GObject Introspection (search on the web), I don't know the status but because GDA provides good GIR/typelib since 4.2.10 and 5.0. information you will can use directly from PHP. 2011/11/17 Vivien Malerba : > > > On 16 November 2011 21:28, Murray Cumming wrote: >> >> Is anybody actually using this web provider thing in real life? >> http://git.gnome.org/browse/libgda/tree/providers/web/README >> > > I've used it as some point but not at the moment, though it should work. > Setting it up is a bit tricky, as some PHP scripts need to be installed on > the Web server, see the providers/web/php/README for the setup (one day I > should add this to the main documentation). > >> >> Does it support cursor/iter based models? > > It does, but it's not optimized as internally it uses a GdaDataModel created > from an XML file. I guess some work should be necessary to make it properly > support cursor based access without the random access. > > Also meta data fetching only works well for PostgreSQL and MySQL at the > moment (again some not very difficult work should be put for other types of > servers). > > Regards, > > Vivien > > _______________________________________________ > gnome-db-list mailing list > gnome-db-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-db-list > > From esodan@gmail.com Thu Nov 17 14:47:46 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E8B167500DE for ; Thu, 17 Nov 2011 14:47:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yV891EGOdrq1 for ; Thu, 17 Nov 2011 14:47:43 +0000 (UTC) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by menubar.gnome.org (Postfix) with ESMTP id B0DFF75018D for ; Thu, 17 Nov 2011 14:47:34 +0000 (UTC) Received: by wyf23 with SMTP id 23so3604607wyf.27 for ; Thu, 17 Nov 2011 06:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XEUObmCLHwizFZEZQGt/ABoCPRDEok2/j7LdwMvUCWI=; b=rklKpKU2aQ7hcrtoewMeshikozR3Rl4206WIRkxXfF/2cVekUZ+SzuR1L3BilHwA/w ClvZrxT1L5Q5FXyTF+bfaiGf4s0XATdhl29yvyRKYXkAZREZNwDsKqMd7E1gzO+eCm45 c0IB4x2gU6dH/8wtbkbDmON6qOiBwVVkF4P6I= MIME-Version: 1.0 Received: by 10.216.196.232 with SMTP id r82mr3332240wen.55.1321541252515; Thu, 17 Nov 2011 06:47:32 -0800 (PST) Received: by 10.216.174.12 with HTTP; Thu, 17 Nov 2011 06:47:32 -0800 (PST) In-Reply-To: References: <1321475287.11588.3.camel@localhost> Date: Thu, 17 Nov 2011 08:47:32 -0600 Message-ID: From: Daniel Espinosa To: gnome-db-list@gnome.org Content-Type: text/plain; charset=UTF-8 Subject: Re: [gnome-db] libgda web connection? X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 14:47:47 -0000 Python bindings are ready, using GObject Introspection, to use GDA in a web server using python scripts. 2011/11/17 Vivien Malerba : > > > On 17 November 2011 14:58, Daniel Espinosa wrote: >> >> PHP is getting support for GObject Introspection (search on the web), >> I don't know the status but because GDA provides good GIR/typelib >> since 4.2.10 and 5.0. information you will can use directly from PHP. >> > > Yes, I've seen some posts about that and I think this will really be step > forward! > > However the web provider is a bit different as it allows one to access a > database through a web server, see > http://blogs.gnome.org/vivien/2010/01/16/new-libgda-releases/. > > When Libgda can be used within PHP, then the web provider can stop using > PEAR and use Libgda instead for the same purpose... > > Regards, > > Vivien > From piotrek.pokora@gmail.com Thu Nov 17 18:53:11 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6DE837501CC for ; Thu, 17 Nov 2011 18:53:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gzuIgxjStePd for ; Thu, 17 Nov 2011 18:53:09 +0000 (UTC) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by menubar.gnome.org (Postfix) with ESMTP id EF2A27500A4 for ; Thu, 17 Nov 2011 18:53:00 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so4251942bkb.27 for ; Thu, 17 Nov 2011 10:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=nywge6upJeVaAZdQwgG4yhSwVhiIJvo2wBZnELRtZ6w=; b=bWSAvfFI4kSFEIhdOrKh3w1RjGPwQereHGl3ccC4L9S0yfzUtew9yicjc82vRFVt5R s8F2xUsiBTn9fp3bZscDuoq+NuCmjn6ObBNwcRHUOQJ4hf8s7F9iv07LBem2C1qWBKuT UEnBrIwnODorQonGgSTQ77sYgH6FjtZRZ7X6o= Received: by 10.204.145.211 with SMTP id e19mr34410396bkv.55.1321555978512; Thu, 17 Nov 2011 10:52:58 -0800 (PST) Received: from [192.168.2.100] ([95.175.5.252]) by mx.google.com with ESMTPS id c8sm2854664fai.19.2011.11.17.10.52.49 (version=SSLv3 cipher=OTHER); Thu, 17 Nov 2011 10:52:57 -0800 (PST) Message-ID: <4EC557F6.5020204@gmail.com> Date: Thu, 17 Nov 2011 19:52:38 +0100 From: Piotr Pokora User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Daniel Espinosa References: <1321475287.11588.3.camel@localhost> In-Reply-To: X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] Fwd: libgda web connection? X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 18:53:11 -0000 Hi! > PHP is getting support for GObject Introspection (search on the web), I do not think it'll be ready any time soon :/ > I don't know the status but because GDA provides good GIR/typelib > since 4.2.10 and 5.0. information you will can use directly from PHP. Python (as you already mentioned) is much better choice. Piotras From rmantovani@libero.it Thu Nov 10 08:11:16 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E8FCF7503A9 for ; Thu, 10 Nov 2011 08:11:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.301 X-Spam-Level: X-Spam-Status: No, score=0.301 tagged_above=-999 required=2 tests=[BAYES_60=1.5, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.201, SPF_PASS=-0.001, TVD_SPACE_RATIO=0.001] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yHVfqcY0EX6j for ; Thu, 10 Nov 2011 08:11:13 +0000 (UTC) X-Greylist: delayed 328 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 10 Nov 2011 08:11:13 UTC Received: from outrelay03.libero.it (outrelay03.libero.it [212.52.84.103]) by menubar.gnome.org (Postfix) with ESMTP id 2ADC3750096 for ; Thu, 10 Nov 2011 08:11:04 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B0203.4EBB85CE.01BD,ss=1,re=0.000,fgs=0 X-libjamoibt: 1821 Received: from wmail50 (172.31.0.240) by outrelay03.libero.it (8.5.133) (authenticated as rmantovani@libero.it) id 4E8B32AF0411D7C2 for gnome-db-list@gnome.org; Thu, 10 Nov 2011 09:05:34 +0100 Message-ID: <31260684.2934631320912334846.JavaMail.defaultUser@defaultHost> Date: Thu, 10 Nov 2011 09:05:34 +0100 (CET) From: "rmantovani@libero.it" To: gnome-db-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_226547_29489511.1320912334846" X-SenderIP: 93.66.232.229 X-Mailman-Approved-At: Sat, 19 Nov 2011 09:53:32 +0000 Subject: [gnome-db] unsubscribe X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "rmantovani@libero.it" List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2011 08:11:16 -0000 ------=_Part_226547_29489511.1320912334846 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ------=_Part_226547_29489511.1320912334846 Content-Type: text/html;charset="UTF-8" Content-Transfer-Encoding: 7bit



------=_Part_226547_29489511.1320912334846-- From SRS0=ZKHAyd=6G=aquasoftware.co.za=faghmie@srs.bis7.eu.blackberry.com Thu Nov 24 18:11:45 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 980C875011D for ; Thu, 24 Nov 2011 18:11:45 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.402 X-Spam-Level: X-Spam-Status: No, score=-5.402 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.201, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H6bPY8NVoF+Z for ; Thu, 24 Nov 2011 18:11:43 +0000 (UTC) X-Greylist: delayed 803 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 24 Nov 2011 18:11:42 UTC Received: from smtp03.bis7.eu.blackberry.com (smtp03.bis7.eu.blackberry.com [178.239.85.8]) by menubar.gnome.org (Postfix) with ESMTP id A86CB75005D for ; Thu, 24 Nov 2011 18:11:33 +0000 (UTC) Received: from b5.c17.bise7.blackberry ([192.168.0.105]) by srs.bis7.eu.blackberry.com (8.13.7 TEAMON/8.13.7) with ESMTP id pAOHw7D7003301 for ; Thu, 24 Nov 2011 17:58:07 GMT Received: from 172.18.210.220 (cmp50.c17.bise7.blackberry [172.18.210.220]) by b5.c17.bise7.blackberry (8.13.7 TEAMON/8.13.7) with ESMTP id pAOHw531029457 for ; Thu, 24 Nov 2011 17:58:05 GMT X-rim-org-msg-ref-id: 1730154562 Message-ID: <1730154562-1322157484-cardhu_decombobulator_blackberry.rim.net-1821121285-@b17.c17.bise7.blackberry> X-Priority: Normal Sensitivity: Normal Importance: Normal To: gnome-db-list@gnome.org From: "Faghmie Davids" Date: Thu, 24 Nov 2011 17:58:03 +0000 Content-Type: text/plain MIME-Version: 1.0 Subject: [gnome-db] Firebird driver X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: faghmie@aquasoftware.co.za List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 18:11:45 -0000 Hi, My name is Faghmie and I have been doing some work on the firebird driver for libgda. I got it returning recordsets and would like to commit this code back to the project. Can someone please assist me in doing this? Regards, Faghmie Sent via my BlackBerry from Vodacom - let your email find you! From vmalerba@gmail.com Thu Nov 24 19:49:48 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C10F87500C3 for ; Thu, 24 Nov 2011 19:49:48 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zoiQy02rAtET for ; Thu, 24 Nov 2011 19:49:46 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 6964875006B for ; Thu, 24 Nov 2011 19:49:38 +0000 (UTC) Received: by ggnk5 with SMTP id k5so4523689ggn.27 for ; Thu, 24 Nov 2011 11:49:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8V5EOzad+ktG/yo/xdvxZbVaBLJYq2DGWXJ9AkIinJY=; b=pprlt+1dWhOzqcZcetAVVMWFVv8osrhEsIuWS7XZC1cs4QLtFnCbiXgIHfo8xsTc11 itPZ28WHaEVPz0/lIU7sBMt74Xzv8e7ZXczUbOSBGdAhW/QfBhmPnAQmSyWDuABRCZRc agzOJDDN15Hwj7aupaEzqooBMgzf7YvSqfb4Y= MIME-Version: 1.0 Received: by 10.236.78.72 with SMTP id f48mr43979021yhe.121.1322164176895; Thu, 24 Nov 2011 11:49:36 -0800 (PST) Received: by 10.147.166.15 with HTTP; Thu, 24 Nov 2011 11:49:36 -0800 (PST) In-Reply-To: <1730154562-1322157484-cardhu_decombobulator_blackberry.rim.net-1821121285-@b17.c17.bise7.blackberry> References: <1730154562-1322157484-cardhu_decombobulator_blackberry.rim.net-1821121285-@b17.c17.bise7.blackberry> Date: Thu, 24 Nov 2011 20:49:36 +0100 Message-ID: From: Vivien Malerba To: faghmie@aquasoftware.co.za Content-Type: multipart/alternative; boundary=20cf300fad5319402504b280567d Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] Firebird driver X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 19:49:49 -0000 --20cf300fad5319402504b280567d Content-Type: text/plain; charset=ISO-8859-1 On 24 November 2011 18:58, Faghmie Davids wrote: > Hi, > > My name is Faghmie and I have been doing some work on the firebird driver > for libgda. I got it returning recordsets and would like to commit this > code back to the project. > Great, thanks! > > Can someone please assist me in doing this? > Of course! The best way is that you send me the modifications you made as a patch. If you have worked on Libgda using a git clone, then this is very easy, as you only need to run "git diff > PATCH" to generate the patch file. If you did not use a git clone and got Libgda's source code from a tarball, then you can use the diff command on the original an modified versions of Libgda's code and generate the patch. If you're not sure, you can send me a complete tarball of your working copy (via email or a file hosting site). Anyway, if you plan to make more improvements to the Firebird provider and don't use git, I suggest you create your local clone using git as mentionned at the bottom of the http://git.gnome.org/browse/libgda/ page. If you have any difficulty generating the patch or a tarball, please let me know. Best regards, Vivien --20cf300fad5319402504b280567d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 24 November 2011 18:58, Faghmie David= s <faghm= ie@aquasoftware.co.za> wrote:
Hi,

My name is Faghmie and I have been doing some work on the firebird driver f= or libgda. I got it returning recordsets and would like to commit this code= back to the project.

Great, thanks!
=A0

Can someone please assist me in doing this?

Of cou= rse!

The best way is that you send me the modifications you made as = a patch.

If you have worked on Libgda using a git clone, then this i= s very easy, as you only need to run "git diff > PATCH" to gen= erate the patch file. If you did not use a git clone and got Libgda's s= ource code from a tarball, then you can use the diff command on the origina= l an modified versions of Libgda's code and generate the patch.

If you're not sure, you can send me a complete tarball of your work= ing copy (via email or a file hosting site).

Anyway, if you plan to = make more improvements to the Firebird provider and don't use git, I su= ggest you create your local clone using git as mentionned at the bottom of = the=A0 http://git.gnome.org= /browse/libgda/ page.

If you have any difficulty generating the patch or a tarball, please le= t me know.

Best regards,

Vivien
--20cf300fad5319402504b280567d-- From murrayc@murrayc.com Mon Nov 28 10:04:06 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9B3CA7500B9 for ; Mon, 28 Nov 2011 10:04:06 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.523 X-Spam-Level: X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, TW_BG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B3WJi+s2RQMj for ; Mon, 28 Nov 2011 10:04:04 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id E905C7500AA for ; Mon, 28 Nov 2011 10:03:55 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id B3657210B1 for ; Mon, 28 Nov 2011 05:03:53 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 28 Nov 2011 05:03:53 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:content-transfer-encoding :mime-version; s=smtpout; bh=ax4fG3+oEmiwp1MyKqLpYTCoDhE=; b=Un7 mQJ4GgQUE+gJZrPckN/bzxfCV0hAr5ECZy7PRZwDxhjOMnTZ1Qhzr26asM2Q7xBA ykweZpYag51a/UwJjtaO97slOGu/43GE8vrVcL0MkBibtAiKSm1TJJmXOsYNsr6G 9fOdfNbRRJ/zJX42W7yhLSwTo1BlmludD9zMyEks= X-Sasl-enc: P+Um6ADclhOW4/3+24zqCyUMJbXwdeMR5kVMXtDekWZ8 1322474633 Received: from [192.168.178.24] (ppp-93-104-179-150.dynamic.mnet-online.de [93.104.179.150]) by mail.messagingengine.com (Postfix) with ESMTPSA id D305F48248C; Mon, 28 Nov 2011 05:03:52 -0500 (EST) Message-ID: <1322474630.928.2.camel@murrayc-desktop> From: Murray Cumming To: Vivien Malerba Date: Mon, 28 Nov 2011 11:03:50 +0100 In-Reply-To: References: <1730154562-1322157484-cardhu_decombobulator_blackberry.rim.net-1821121285-@b17.c17.bise7.blackberry> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] Firebird driver X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 10:04:06 -0000 On Thu, 2011-11-24 at 20:49 +0100, Vivien Malerba wrote: > > > On 24 November 2011 18:58, Faghmie Davids > wrote: > Hi, > > My name is Faghmie and I have been doing some work on the > firebird driver for libgda. I got it returning recordsets and > would like to commit this code back to the project. > > Great, thanks! > > > > Can someone please assist me in doing this? > > Of course! > > The best way is that you send me the modifications you made as a > patch. > > If you have worked on Libgda using a git clone, then this is very > easy, as you only need to run "git diff > PATCH" to generate the patch > file. If you did not use a git clone and got Libgda's source code from > a tarball, then you can use the diff command on the original an > modified versions of Libgda's code and generate the patch. > > If you're not sure, you can send me a complete tarball of your working > copy (via email or a file hosting site). > > Anyway, if you plan to make more improvements to the Firebird provider > and don't use git, I suggest you create your local clone using git as > mentionned at the bottom of the http://git.gnome.org/browse/libgda/ > page. > > If you have any difficulty generating the patch or a tarball, please > let me know. > And maybe you have some comment for this firebird provider bug: https://bugzilla.gnome.org/show_bug.cgi?id=356492 -- murrayc@murrayc.com www.murrayc.com www.openismus.com From azagli@libero.it Tue Nov 29 16:47:53 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AB8275010D for ; Tue, 29 Nov 2011 16:47:53 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.87 X-Spam-Level: X-Spam-Status: No, score=-2.87 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.201, SPF_PASS=-0.001, TW_BG=0.077, TW_BP=0.077, TW_NX=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lj9g7tIoP6Sf for ; Tue, 29 Nov 2011 16:47:48 +0000 (UTC) X-Greylist: delayed 327 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 29 Nov 2011 16:47:47 UTC Received: from outrelay08.libero.it (outrelay08.libero.it [212.52.84.112]) by menubar.gnome.org (Postfix) with ESMTP id B637C7500DD for ; Tue, 29 Nov 2011 16:47:39 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B0207.4ED50B62.0024,ss=1,re=0.000,fgs=0 X-libjamoibt: 1823 Received: from phobos.saetta.homelinux.org (151.40.226.188) by outrelay08.libero.it (8.5.133) (authenticated as azagli@libero.it) id 4EBCFB6002974616 for gnome-db-list@gnome.org; Tue, 29 Nov 2011 17:42:10 +0100 Received: from localhost (localhost [127.0.0.1]) by phobos.saetta.homelinux.org (Postfix) with ESMTP id 5F2789ED2 for ; Tue, 29 Nov 2011 18:41:25 +0100 (CET) Received: from asterix.comune.scandicci.fi.it (asterix.comune.scandicci.fi.it [159.213.80.197]) by saetta.homelinux.org (Horde Framework) with HTTP; Tue, 29 Nov 2011 18:41:23 +0100 Date: Tue, 29 Nov 2011 18:41:23 +0100 Message-ID: <20111129184123.Horde.OqSxfhs-3RBO1RlDQl-hfHA@saetta.homelinux.org> From: Andrea Zagli To: gnome-db-list@gnome.org User-Agent: Internet Messaging Program (IMP) H4 (5.0.15) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Subject: [gnome-db] libgda doesn't open transactions X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2011 16:47:53 -0000 branch 4.2 (last commit), postgresql 8.4, windows i have a strange behavior of libgda: on 2pc (a winxp and a win7) it doesn't open transactions and it doesn't return errors tested with gda-browser: when i click on begin button nothing happens (commit and rollback buttons remain disabled) version 4.2.10 works; and it works also on my pc where i develop and where i have 4.2.12 HEAD; environments probably are not the sames, but libgda and libpq are at the same version what could be the problem? thanks in advance From vmalerba@gmail.com Wed Nov 30 19:51:05 2011 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1BB7F75008B for ; Wed, 30 Nov 2011 19:51:05 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.468 X-Spam-Level: X-Spam-Status: No, score=-2.468 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_BP=0.077, TW_NX=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vIy+i+kMIkzf for ; Wed, 30 Nov 2011 19:51:03 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id 1D75B75006F for ; Wed, 30 Nov 2011 19:50:54 +0000 (UTC) Received: by ghbg20 with SMTP id g20so1592696ghb.27 for ; Wed, 30 Nov 2011 11:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6/coqYuhKVcRFi+UOwiWjLYAq63yjoFygDMeNesDkfY=; b=a6gDlhX0tt7fEPzHMBczFx+F8qa806vlrHH5veBCx/wbrTXoD3gaorlc2ElqgE/uSR 5vSy5ZizDbRMWJKvZNeQHS8SkIWckpYoWrm3g/mkPf2XDZ79q9k0By/rdQXjgnOLM0Wf xD8JsxVkk8laUNLTzivdA/wKRh6N6ccQCqBoc= MIME-Version: 1.0 Received: by 10.236.78.72 with SMTP id f48mr6316148yhe.121.1322682653346; Wed, 30 Nov 2011 11:50:53 -0800 (PST) Received: by 10.146.156.16 with HTTP; Wed, 30 Nov 2011 11:50:53 -0800 (PST) In-Reply-To: <20111129184123.Horde.OqSxfhs-3RBO1RlDQl-hfHA@saetta.homelinux.org> References: <20111129184123.Horde.OqSxfhs-3RBO1RlDQl-hfHA@saetta.homelinux.org> Date: Wed, 30 Nov 2011 20:50:53 +0100 Message-ID: From: Vivien Malerba To: Andrea Zagli Content-Type: multipart/alternative; boundary=20cf300fad53b40d5704b2f90da6 Cc: gnome-db-list@gnome.org Subject: Re: [gnome-db] libgda doesn't open transactions X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2011 19:51:05 -0000 --20cf300fad53b40d5704b2f90da6 Content-Type: text/plain; charset=ISO-8859-1 On 29 November 2011 18:41, Andrea Zagli wrote: > branch 4.2 (last commit), postgresql 8.4, windows > > i have a strange behavior of libgda: on 2pc (a winxp and a win7) it > doesn't open transactions and it doesn't return errors > > tested with gda-browser: when i click on begin button nothing happens > (commit and rollback buttons remain disabled) > > version 4.2.10 works; and it works also on my pc where i develop and where > i have 4.2.12 HEAD; environments probably are not the sames, but libgda and > libpq are at the same version > I don't understand which version doesn't work: from my POV the last commit of branch LIBGDA_4.2 is the same as what call 4.2.12 HEAD. If you can test, does the non working version work when installed on a Linux box with the same postgres server? > > what could be the problem? > > Hard to tell for now as it works for me... Regards, Vivien --20cf300fad53b40d5704b2f90da6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

--20cf300fad53b40d5704b2f90da6--