field data truncated during data fetch
From: Fredrik Kronander (FredrikKronander_at_discussions.microsoft.com)
Date: 01/26/05
- Previous message: Opyuse: "Validation of fields using ODBC"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 Jan 2005 02:57:04 -0800
Hi,
I have an application that dynamically adds fields to a recordset class,
executes the query and loops through the records via MoveNext() calls. When I
encounter a row with a long string value an exception is thrown, "field data
truncated during data fetch". My recordset class calls
CRecordset::DoFieldExchange(pFX); and thus handles DBVT_STRING the normal
way. Is there a maxlength on these strings?
Should I override DoFieldExchange in some way to increase the allowed length?
Any ideas would be greatly appreciated!
Best regards
Fredrik Kronander
- Previous message: Opyuse: "Validation of fields using ODBC"
- Messages sorted by: [ date ] [ thread ]