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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c9d5fc258548b22a 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!feeder.news-service.com!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.belwue.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How do I write directly to a memory address? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <31c357bd-c8dc-4583-a454-86d9c579e5f4@m13g2000yqb.googlegroups.com> <05a3673e-fb97-449c-94ed-1139eb085c32@x1g2000yqb.googlegroups.com> <4d4c232a$0$28967$882e7ee2@usenet-news.net> <4D4D6506.50909@obry.net> <4d50095f$0$22393$882e7ee2@usenet-news.net> <4d6d56c4$0$11509$882e7ee2@usenet-news.net> <16u9ka51wbukr$.1fj2sb73j9rv6.dlg@40tude.net> <4d6d627b$0$11509$882e7ee2@usenet-news.net> <29c4lixc0ght$.14kkfz1kij135.dlg@40tude.net> <4d6d6afb$0$11509$882e7ee2@usenet-news.net> Date: Wed, 2 Mar 2011 09:42:17 +0100 Message-ID: <1gz9984wwizn5.r619fw4z9o56.dlg@40tude.net> NNTP-Posting-Date: 02 Mar 2011 09:42:17 CET NNTP-Posting-Host: 36b88040.newsspool1.arcor-online.net X-Trace: DXC=H4QH1BKI_9LH[6LHn;2LCVN7enW;^6ZC`D\`mfM[68DCCkAA8m4_GijH X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:17713 Date: 2011-03-02T09:42:17+01:00 List-Id: On Tue, 01 Mar 2011 16:54:04 -0500, Hyman Rosen wrote: > On 3/1/2011 4:37 PM, Dmitry A. Kazakov wrote: >> They must do it this way, because the database interface is untyped. > > That makes no sense. They are providing a programming interface > for Ada to SQL. No, they do to the PostgreSQL client, which is in C. SQL cannot be interfaced at all, unless embedded. > It seems to me one cannot > design an Ada interface that requires passing data using > Params => (1 => +Name'Access) I don't understand this. Of course they can and they did. The Ada interface used exactly this way of parameter passing. Where is a problem. All problems are on the client size, which is untyped because C cannot capture the set of DB types, and RDBMS is unable to describe the semantics and internal representation of these types. Ada cannot save you of you are sitting on top of a cesspit. You are already there, enjoy it! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de