Re: IRowsetUpdate::Update and DBROWSTATU_E_FAIL
"LABELLE, Maxime" <[email protected]> Wed, 21 May 2003 10:18:03 +0200
| Newsgroups | gmane.comp.windows.devel.oledb.devel |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C31F71.7FBDA4AA
Content-Type: text/plain;
charset="iso-8859-1"
Well,
I made some progress on this problem.
I have changed my code so as to use immediate update mode.
Now, I get a more explicit error message from the provider.
It says:
> unable to insert NULL into "MYTABLE"."A"
Well, that is weird, since I'm not actually inserting
a null value. My code creates a column accessor with
bounded value, status and length parts for two unsigned long
numeric values.
I happened *not* to set the correct length in the accessor
buffer, and that was what caused the error.
Thanks for your help.
Cheers.
Maxime.
You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.
------_=_NextPart_001_01C31F71.7FBDA4AA
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
<BODY>
<P><FONT size=2>Well,<BR><BR>I made some progress on this problem.<BR><BR>I have
changed my code so as to use immediate update mode.<BR>Now, I get a more
explicit error message from the provider.<BR>It says:<BR><BR>> unable to
insert NULL into "MYTABLE"."A"<BR><BR>Well, that is weird, since I'm not
actually inserting<BR>a null value. My code creates a column accessor
with<BR>bounded value, status and length parts for two unsigned long<BR>numeric
values.<BR><BR>I happened *not* to set the correct length in the
accessor<BR>buffer, and that was what caused the error.<BR>Thanks for your
help.<BR><BR>Cheers.<BR>Maxime. </FONT></P></BODY></HTML>
You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.
------_=_NextPart_001_01C31F71.7FBDA4AA--