Home » U++ Library support » U++ SQL » SqlId aliasing
SqlId aliasing [message #41909] |
Wed, 05 February 2014 13:26  |
wqcmaster
Messages: 37 Registered: March 2013
|
Member |
|
|
Similar to this post, we added some kind of SqlId aliasing.
It works as follows:
database.sch:
TABLE__(MyTableName, T1) // Fuer DBDomaenen
INT_ (MPK) PRIMARY_KEY
BOOL__ (BooleanVariable, CB1)
INT__ (NameId, CI1)
INT__ (VendorId, CI2)
INT__ (TaskId, CI3)
STRING__ (Title, CS1, 255)
STRING__ (Description, CS2, 50)
TIME__ (Timestamp, CT1)
END_TABLE
will now generate the following SqlIds:
SqlId MyTableName("T1");
SqlId MPK("MPK");
SqlId BooleanVariable("CB1");
SqlId NameId("CI1");
SqlId VendorId("CI2);
SqlId TaskId("CI3");
SqlId Title("CS1");
SqlId Description("CS2");
SqlId Timestamp("CT1");
Well, as you see, aliasing is not the correct terminology, maybe some kind of simple database column name obfuscation.
Patch attached to this post; done against r6693 but also works against r6870.
Something to be included in TRUNK?
[Updated on: Wed, 05 February 2014 13:27] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 03:32:05 CEST 2025
Total time taken to generate the page: 0.01490 seconds
|