Jump to content

GUIDs stored in non-unsigned fields, why?


Recommended Posts

Posted

Hi,

I noticed something in some tables of the mangos database.

Some GUIDs fields are not unsigned, but I don't understand why. A GUID is always positive, am I right?

Examples.

Table creature : `guid` INT( 11 ) NOT NULL AUTO_INCREMENT

Table gameobject : `guid` INT( 11 ) NOT NULL AUTO_INCREMENT

Moreover, in other tables, those GUIDs are unsigned

Table creature_respawn : `guid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'

Is there any reason for not making those fields unsigned?

Thanks

Posted

I don't know what mangos DB you use, but this mostly meaning DB creators fail.

In mangos.sql you can see:

`guid` int(10) unsigned NOT NULL auto_increment COMMENT 'Global Unique Identifier',

for `creature` for example. So this not mangos team problem ;)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use