From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc3719e6afe93cd7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!postnews.google.com!u7g2000yqm.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: Re: mysql , gnade and function hanging Date: Wed, 30 Jun 2010 02:03:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <9d22007e-b11c-4527-afb5-ae429aeb3f05@c10g2000yqi.googlegroups.com> NNTP-Posting-Host: 89.240.135.62 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1277888613 13581 127.0.0.1 (30 Jun 2010 09:03:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 30 Jun 2010 09:03:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u7g2000yqm.googlegroups.com; posting-host=89.240.135.62; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12028 Date: 2010-06-30T02:03:33-07:00 List-Id: On 30 June, 09:34, tonyg wrote: > I am calling this gnade function in the mysql package to get some > debug info > > Put_Line(To_String(String_Field (TheDatabase, TheHeaterQuery, 1))); > > it unfortunately hangs though and the task stops > > I am thinking perhaps the whole task has either hung or terminated > without telling me. > > Would gnat tell me if this task had crashed? I put the code in a straight procedure and I get a constraint error which is raised CONSTRAINT_ERROR : gnu-db-mysql.adb:883 invalid data I am wondering what field types are good to use in a ada mysql database connection and what I am doing wrong here - has anybody any ideas ?