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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,a36a9db79cd4c60d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z7g2000vbl.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Ada and MySQL (mysql_library_init) Date: Sat, 5 Dec 2009 15:03:33 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 83.76.218.146 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1260054213 11026 127.0.0.1 (5 Dec 2009 23:03:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 5 Dec 2009 23:03:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z7g2000vbl.googlegroups.com; posting-host=83.76.218.146; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8319 Date: 2009-12-05T15:03:33-08:00 List-Id: On 5 Gru, 23:41, Tomek Walkuski wrote: > when interacting with MySQL database I should invoke mysql_library_init > () function first. GNADE does not have it implemented > Any ideas? According to MySQL docs, you do not have to call this function, because mysql_init does it implicitly - you have to just ensure that you do not call it from multiple threads, which seems straightforward as it is an initialization function. You might also want to have a look at the SOCI-Ada library: http://www.inspirel.com/soci-ada -- Maciej Sobczak * www.msobczak.com * www.inspirel.com