From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.devel Subject: Re: Problems with guile-sqlite3 Date: Wed, 20 Apr 2011 12:22:55 -0300 Message-ID: <20110420122255.146f8f4c@rascar> References: <20110401023323.32041242@rascar> <20110401200551.2f7c4135@rascar> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303313003 17623 80.91.229.12 (20 Apr 2011 15:23:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2011 15:23:23 +0000 (UTC) Cc: Andy Wingo , guile-devel@gnu.org To: Detlev Zundel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Apr 20 17:23:19 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCZFJ-0003Ng-Fu for guile-devel@m.gmane.org; Wed, 20 Apr 2011 17:23:13 +0200 Original-Received: from localhost ([::1]:51232 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCZFJ-0008IF-05 for guile-devel@m.gmane.org; Wed, 20 Apr 2011 11:23:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCZFG-0008IA-AS for guile-devel@gnu.org; Wed, 20 Apr 2011 11:23:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCZFE-0002Se-Kk for guile-devel@gnu.org; Wed, 20 Apr 2011 11:23:10 -0400 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:38130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCZFE-0002SX-GN for guile-devel@gnu.org; Wed, 20 Apr 2011 11:23:08 -0400 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 65D85A04C1A7; Wed, 20 Apr 2011 17:23:06 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id TD3kfu+26ism; Wed, 20 Apr 2011 17:06:05 +0200 (CEST) Original-Received: from rascar (unknown [189.60.162.71]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 3C24FA04C1AE; Wed, 20 Apr 2011 17:22:58 +0200 (CEST) In-Reply-To: X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.3; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.58.108.13 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12301 Archived-At: Hi Detlev, I am sorry for the very loooooong delay in responding, but yes it did work = for me as well, many thanks for your patches. I'd love to have a './configure --prefix=3D... && make install' [even thoug= h there is only only file for the time being], could you help me doing the setup or po= int me a tutorial a could read with regards these matters? Thanks, David ;; -- Le Mon, 04 Apr 2011 18:22:18 +0200, Detlev Zundel a =C3=A9crit : > Hi David, >=20 > > I spotted where the problem comes from: it is when a text value is empt= y. I have > > produced a small but complete example [attached]: can you reproduce it ? >=20 > Yes, thanks for the test case, I can now reproduce it and hopefully the > attached patches work for you also. >=20 > The first one fixes the ignorance of 'proc' of the 'sqlite-map' > procedure. It took me a while to figure this one out ;) >=20 > The second patch extends 'tests/basic.test' with some statements that > make the problem discovered by you show up. >=20 > The third patch fixes the problem for me. Andy, is this the 'right way' > to test for null pointers? I could not find a cleaner solution in my > limited search... >=20 > The fourth patch fixes a problem I discovered while playing with > sqlite-bind. Really this should generate more testcases. >=20 > Andy, I have now cloned your repo at gitorious[1] for you to pull if > that's easier. I am perfectly happy to rework patches if anything needs > to be done for that. >=20 > Thanks > Detlev >=20 > [1] https://gitorious.org/~dzu/guile-sqlite3/guile-sqlite3-dzu >=20