On Thu, 26 Apr 2007 21:09:10 +0100, Tim Bunce <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 26, 2007 at 08:26:40PM +0200, H.Merijn Brand wrote:
> > On Thu, 26 Apr 2007 18:00:22 +0100, Tim Bunce <[EMAIL PROTECTED]> wrote:
> >
> > > > AV *dbd_st_fetch (SV *sth, imp_sth_t *imp_sth)
> > > > {
> > >
> > > > av = DBIS->get_fbav (imp_sth);
> > >
> > > Sure: av = DBIc_STATE (imp_sth)->get_fbav (imp_sth);
> >
> > If I do that, I get
> >
> > cc: "dbdimp.ec", line 1122: error 1588: "get_fbav" undefined.
> > cc: "dbdimp.ec", line 1122: error 1531: Invalid member of struct or union.
> > cc: "dbdimp.ec", line 1122: error 1533: Illegal function call.
>
> Oops, it's DBIc_DBISTATE not DBIc_STATE (DBIc_STATE is the 5 char SQLSTATE
> value).
Super. All tests now/still pass. I will upload the new version soon.
Thanks.
> > > > It's a shame that UNIFY didn't even document SQLSTATE, apart from
> > > > "The SQLSTATE variable is provided for compatibility to the
> > > > ANSI SQL2 draft standard."
> > > >
> > > > So I have no idea how to extend my tests to see if the states make sense
> > >
> > > If you don't then I certainly don't :-)
> >
> > I'll see if I can dig up some `standards' about that and if Unify does
> > comply to them.
>
> Section 23.1 of ISO/IEC 9075-2:2003 :-) I could email you a copy of the
> draft I have if you'd like. Don't print it though. It's >1300 pages :)
I fetched the link that Darren posted. Thanks to both!
--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.9.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.0 & 10.2, AIX 4.3 & 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/