xsharp.eu • Exception in DbCreate (B2.2.1 Vulcan dialect)
Page 1 of 1

Exception in DbCreate (B2.2.1 Vulcan dialect)

Posted: Wed Jan 15, 2020 8:37 am
by Thomas
Hi all,

I get a System.Exception {XSharp.RDD.RddError} executing the following code (B2.2.1 Vulcan dialect):

Code: Select all

DbCreate("c:TempTest.dbf", {{"Date", "D", 10, 0}})


{"Eine Ausnahme vom Typ ""XSharp.RDD.RddError"" wurde ausgelöst."}
bei XSharp.RDD.DBF._dbfError(Exception ex, UInt32 iSubCode, UInt32 iGenCode, String strFunction, String strMessage, UInt32 iSeverity)
bei XSharp.RDD.DBF._checkFields(RddFieldInfo info)
bei XSharp.RDD.Workarea.AddField(RddFieldInfo info)
bei XSharp.RDD.DBF.AddField(RddFieldInfo info)
bei XSharp.RDD.Workarea.CreateFields(RddFieldInfo[] aFields)
bei XSharp.CoreDb.<>c__DisplayClass34_0.<Create>b__0()
bei XSharp.CoreDb.Do[T](Func`1 action)
bei XSharp.CoreDb.Create(String cName, RddFieldInfo[] aStruct, Type rddType, Boolean lNew, String cAlias, String cDelim, Boolean lKeep, Boolean lJustOpen)
bei XSharp.CoreDb.<>c__DisplayClass32_0.<Create>b__0()
bei XSharp.CoreDb.Do[T](Func`1 action)
bei XSharp.CoreDb.Create(String cName, RddFieldInfo[] aStruct, String cRddName, Boolean lNew, String cAlias, String cDelim, Boolean lKeep, Boolean lJustOpen)
bei XSharp.RT.Functions.DbCreate(__Usual[] Xs$Args)


The value 10 for the column size seems to be wrong. This was no error in Vulcan.

Regards
Thomas

Exception in DbCreate (B2.2.1 Vulcan dialect)

Posted: Wed Jan 15, 2020 9:09 am
by Chris
Hi Thomas,

Thanks, I see VO works with that as well, also with a LOGIC column of any size, apparently it ignores the size for those types. Will log this to be fixed, for now please just change the size to the correct value from DATE ("8").

Exception in DbCreate (B2.2.1 Vulcan dialect)

Posted: Wed Jan 15, 2020 9:13 am
by Thomas
Thanks Chris!!