Skip to content

Commit 0811406

Browse files
committed
Proper COLUMN_SIZE (DNET-861).
1 parent 18bcba1 commit 0811406

File tree

1 file changed

+4
-1
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/Schema

1 file changed

+4
-1
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Schema/FbColumns.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ protected override DataTable ProcessResult(DataTable schema)
148148

149149
if (dbType == FbDbType.Char || dbType == FbDbType.VarChar)
150150
{
151-
row["COLUMN_SIZE"] = row["CHARACTER_MAX_LENGTH"];
151+
if (!row.IsNull("CHARACTER_MAX_LENGTH"))
152+
{
153+
row["COLUMN_SIZE"] = row["CHARACTER_MAX_LENGTH"];
154+
}
152155
}
153156
else
154157
{

0 commit comments

Comments
 (0)