Field type error with UniDac and NexusDB
Posted: Thu 04 Aug 2016 12:37
Hi,
we are currently testing if we can extend our applications (using UniDAC) so that the users can also use NexusDB as a database (currently we support Access, Interbase, MSSQL, MySQL). I have created a small test app with a TUniConnection and a TUniQuery. The TUniQuery has persistent fields of type WideString.
For different providers (SQL Server...) I have created data type mappings. For example, a field which is created as "varchar" in a MSSQL Server database, but defined as WideString in the persistent field list of the query is correctly read. But I have problems to define the data type mappings for NexusDB:
The NexusDB test database was created with a SQL script with "varchar" data type. When i try to open the query using the NexusDB provider I get the error "different types for field XXX; expected: WideString, found: String" (the original message is in German). The problem is that I cannot find "string" or "varchar" in the column "Database type" in the Data Type Mapping dialog of the TUniConnection for NexusDB.
In the MSSQL test database, the same fields were also created as "varchar", if I map this type to WideString in the mapping dialog, I get no error when the query is opened.
So my question: Which "Database Type" I have to use for NexusDB in the Data Type Mapping dialog?
we are currently testing if we can extend our applications (using UniDAC) so that the users can also use NexusDB as a database (currently we support Access, Interbase, MSSQL, MySQL). I have created a small test app with a TUniConnection and a TUniQuery. The TUniQuery has persistent fields of type WideString.
For different providers (SQL Server...) I have created data type mappings. For example, a field which is created as "varchar" in a MSSQL Server database, but defined as WideString in the persistent field list of the query is correctly read. But I have problems to define the data type mappings for NexusDB:
The NexusDB test database was created with a SQL script with "varchar" data type. When i try to open the query using the NexusDB provider I get the error "different types for field XXX; expected: WideString, found: String" (the original message is in German). The problem is that I cannot find "string" or "varchar" in the column "Database type" in the Data Type Mapping dialog of the TUniConnection for NexusDB.
In the MSSQL test database, the same fields were also created as "varchar", if I map this type to WideString in the mapping dialog, I get no error when the query is opened.
So my question: Which "Database Type" I have to use for NexusDB in the Data Type Mapping dialog?