[FB-Tracker] Created: (DNET-1039) FbDataAdapter doesn't fill MaxLength-Property of DataColumn of varchar type

7 views
Skip to first unread message

Baldur Fürchau (JIRA)

unread,
Apr 8, 2021, 12:10:05 PM4/8/21
to firebird-n...@googlegroups.com
FbDataAdapter doesn't fill MaxLength-Property of DataColumn of varchar type
---------------------------------------------------------------------------

Key: DNET-1039
URL: http://tracker.firebirdsql.org/browse/DNET-1039
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 7.10.1.0
Environment: Windows 10, Visual Studio 2019, Firebird 3.0
Reporter: Baldur Fürchau
Assignee: Jiri Cincura


In the previous used Version 6.8.0.0 the fbDataAdapter Fill-Method create string columns correct with MaxLength-Property.
Now in 7.10.1.0 the MaxLength is always -1!

Workaround:
To solve the problem i must now load the columns schema to set the property by myself.

DataTable xTable = new DataTable();
using (DbCommand xCommand = GetCommand(xConnection, sql))
{
using (DbDataAdapter adapter = new FbDataAdapter(xCommand as FbCommand))
{
adapter.Fill(xTable);
}
}

I must du this in all my applications because the 7.10 is faster than 6.8 and i need the fastest version for a datawarehouse.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply all
Reply to author
Forward
0 new messages