How to work different table and field names

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cointec
Posts: 50
Joined: Fri 11 Dec 2015 11:02

How to work different table and field names

Post by cointec » Sat 02 Jan 2016 10:21

Hello, I'm in process of migrating one database from Firebird to Oracle in order to work with the two engines from my application.
Firebird has a limit of 31 char for tables and field names, and Oracle has a limit of 30 char for the same.

I have some tables and some fields in firebird of 31 char, and in the migration process to Oracle I'm truncating them.

How is the best way to work with tables/fields from UniDac?

cointec
Posts: 50
Joined: Fri 11 Dec 2015 11:02

Re: How to work different table and field names

Post by cointec » Sun 10 Jan 2016 22:38

No comments?
Is not posible through macros?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: How to work different table and field names

Post by AlexP » Mon 11 Jan 2016 06:49

Hello,

Please describe in more details the behavior you want to implement - and we will try to help you resolve the issue.

cointec
Posts: 50
Joined: Fri 11 Dec 2015 11:02

Re: How to work different table and field names

Post by cointec » Mon 11 Jan 2016 18:51

I have a table in a firebird database whose length is 31 characters. For Example

TABLE_XXXXXXXXXXXXXXXXXXXXXXXXY

I have migrated the table to Oracle, but Oracle only admit 30 char for objects. Then the migrated table in Oracle is
TABLE_XXXXXXXXXXXXXXXXXXXXXXXX

I have a form that select, insert, Update and delete from that table. With UniQuery, I want to know if there is one option, that depending on the engine, I can change the part from SQL, SQLInsert, ... where appears the table name via macros.

It also happen with some table fields that are 31 char long.

Thank you.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: How to work different table and field names

Post by AlexP » Tue 12 Jan 2016 12:49

If you want to use both databases simultaneously without modifying queries, you can use macros
https://www.devart.com/unidac/docs/?unisql.htm .

Post Reply