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).
> > > 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 :)
Tim.