From: <car...@us...> - 2004-07-31 13:23:07
|
Update of /cvsroot/firebird/NETProvider/NETProvider_17/source/FirebirdSql.Data.Firebird/DbSchema In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22189 Modified Files: FbDataTypesSchema.cs Log Message: Minor fix for latest commit Index: FbDataTypesSchema.cs =================================================================== RCS file: /cvsroot/firebird/NETProvider/NETProvider_17/source/FirebirdSql.Data.Firebird/DbSchema/FbDataTypesSchema.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -b -U3 -r1.1 -r1.2 --- FbDataTypesSchema.cs 31 Jul 2004 11:59:40 -0000 1.1 +++ FbDataTypesSchema.cs 31 Jul 2004 13:22:59 -0000 1.2 @@ -37,6 +37,7 @@ DataTable table = new DataTable(); table.Columns.Add("TypeName", typeof(System.String)); + table.Columns.Add("DbType", typeof(System.Int32)); table.Columns.Add("ProviderDbType", typeof(System.Int32)); table.Columns.Add("ColumnSize", typeof(System.Int64)); table.Columns.Add("CreateFormat", typeof(System.String)); @@ -61,21 +62,21 @@ DataRowCollection r = table.Rows; - r.Add(new object[] { "array", FbDbType.Array, Int32.MaxValue, "", "", "System.Array", false, false, false, false, false, false, true, false, false, false, 0, 0, false, false, null, null }); - r.Add(new object[] { "bigint", FbDbType.BigInt, 8, "", "", "System.Int64", false, false, false, false, false, false, true, true, true, false, 0, 0, false, false, null, null }); - r.Add(new object[] { "blob", FbDbType.Binary, Int32.MaxValue, "", "", "System.Byte[]", false, false, false, false, false, false, true, false, false, false, 0, 0, false, false, null, null }); - r.Add(new object[] { "char", FbDbType.Char, Int16.MaxValue, "", "length", "System.String", false, false, true, false, false, false, true, true, true, false, 0, 0, false, true, "'", "'" }); - r.Add(new object[] { "date", FbDbType.Date, 4, "", "", "System.DateTime", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); - r.Add(new object[] { "decimal", FbDbType.Decimal, 0, "", "precision,scale", "System.Decimal", false, false, false, false, false, false, true, true, true, false, 18, 0, false, null, null }); - r.Add(new object[] { "double", FbDbType.Double, 8, "", "", "System.Double", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); - r.Add(new object[] { "float", FbDbType.Float, 4, "", "", "System.Float", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); - r.Add(new object[] { "integer", FbDbType.Integer, 4, "", "", "System.Int32", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); - r.Add(new object[] { "numeric", FbDbType.Numeric, 0, "", "precision,scale", "System.Decimal", false, false, false, false, false, false, true, true, true, false, 18, 0, false, null, null }); - r.Add(new object[] { "smallint", FbDbType.SmallInt, 2, "", "", "System.Int16", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); - r.Add(new object[] { "blob sub_type 1", FbDbType.Text, Int32.MaxValue, "", "", "System.String", false, false, true, false, false, false, true, true, true, false, 0, 0, false, true, "'", "'" }); - r.Add(new object[] { "time", FbDbType.Time, 4, "", "", "System.DateTime", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); - r.Add(new object[] { "timestamp", FbDbType.TimeStamp, 8, "", "", "System.DateTime", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); - r.Add(new object[] { "varchar", FbDbType.VarChar, Int16.MaxValue, "", "length", "System.String", false, false, true, false, false, false, true, true, true, false, 0, 0, false, true, "'", "'" }); + r.Add(new object[] { "array", DbType.Object, FbDbType.Array, Int32.MaxValue, "", "", "System.Array", false, false, false, false, false, false, true, false, false, false, 0, 0, false, false, null, null }); + r.Add(new object[] { "bigint", DbType.Int64, FbDbType.BigInt, 8, "", "", "System.Int64", false, false, false, false, false, false, true, true, true, false, 0, 0, false, false, null, null }); + r.Add(new object[] { "blob", DbType.Binary, FbDbType.Binary, Int32.MaxValue, "", "", "System.Byte[]", false, false, false, false, false, false, true, false, false, false, 0, 0, false, false, null, null }); + r.Add(new object[] { "char", DbType.StringFixedLength, FbDbType.Char, Int16.MaxValue, "", "length", "System.String", false, false, true, false, false, false, true, true, true, false, 0, 0, false, true, "'", "'" }); + r.Add(new object[] { "date", DbType.Date, FbDbType.Date, 4, "", "", "System.DateTime", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); + r.Add(new object[] { "decimal", DbType.Decimal, FbDbType.Decimal, 0, "", "precision,scale", "System.Decimal", false, false, false, false, false, false, true, true, true, false, 18, 0, false, null, null }); + r.Add(new object[] { "double precision", DbType.Double, FbDbType.Double, 8, "", "", "System.Double", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); + r.Add(new object[] { "float", DbType.Single, FbDbType.Float, 4, "", "", "System.Float", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); + r.Add(new object[] { "integer", DbType.Int32, FbDbType.Integer, 4, "", "", "System.Int32", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); + r.Add(new object[] { "numeric", DbType.Decimal, FbDbType.Numeric, 0, "", "precision,scale", "System.Decimal", false, false, false, false, false, false, true, true, true, false, 18, 0, false, null, null }); + r.Add(new object[] { "smallint", DbType.Int16, FbDbType.SmallInt, 2, "", "", "System.Int16", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); + r.Add(new object[] { "blob sub_type 1", DbType.String, FbDbType.Text, Int32.MaxValue, "", "", "System.String", false, false, true, false, false, false, true, true, true, false, 0, 0, false, true, "'", "'" }); + r.Add(new object[] { "time", DbType.Time, FbDbType.Time, 4, "", "", "System.DateTime", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); + r.Add(new object[] { "timestamp", DbType.DateTime, FbDbType.TimeStamp, 8, "", "", "System.DateTime", false, false, false, false, false, false, true, true, true, false, 0, 0, false, null, null }); + r.Add(new object[] { "varchar", DbType.String, FbDbType.VarChar, Int16.MaxValue, "", "length", "System.String", false, false, true, false, false, false, true, true, true, false, 0, 0, false, true, "'", "'" }); return table; } |