mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 22:37:05 +00:00
[11999.5] Support loading tables with default filling into SQL-Loader
* Add special field markers to fill a column in SQLStorage with default values * Add a safeguard to DBCStorage::EraseEntry, Add helper function DBCStorage::InsertEntry to store content Note: If required similar adjustments to DBCStorage might be reasonable if required
This commit is contained in:
parent
1c1bc5c659
commit
969c10a8d9
5 changed files with 102 additions and 34 deletions
|
|
@ -24,8 +24,10 @@
|
|||
|
||||
enum
|
||||
{
|
||||
FT_NA='x', //not used or unknown, 4 byte size
|
||||
FT_NA_BYTE='X', //not used or unknown, byte
|
||||
FT_NA='x', // ignore/ default, 4 byte size, in Source String means field is ignored, in Dest String means field is filled with default value
|
||||
FT_NA_BYTE='X', // ignore/ default, 1 byte size, see above
|
||||
FT_NA_FLOAT='F', // ignore/ default, float size, see above
|
||||
FT_NA_POINTER='p', // fill default value into dest, pointer size, Use this only with static data (otherwise mem-leak)
|
||||
FT_STRING='s', //char*
|
||||
FT_FLOAT='f', //float
|
||||
FT_INT='i', //uint32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue