view MySQLdb/constants/FLAG.py @ 22:597efa4e0311 MySQLdb

Trivial patch for dict.has_key() being deprecated going forward. https://sourceforge.net/tracker/index.php?func=detail&aid=2565545&group_id=22307&atid=374934
author kylev
date Fri, 06 Feb 2009 04:31:38 +0000
parents 7773efbe9b30
children
line wrap: on
line source

"""
MySQL FLAG Constants
--------------------

These flags are used along with the FIELD_TYPE to indicate various
properties of columns in a result set.

"""
__revision__ = "$Revision$"[11:-2]
__author__ = "$Author$"[9:-2]

NOT_NULL = 1
PRI_KEY = 2
UNIQUE_KEY = 4
MULTIPLE_KEY = 8
BLOB = 16
UNSIGNED = 32
ZEROFILL = 64
BINARY = 128
ENUM = 256
AUTO_INCREMENT = 512
TIMESTAMP = 1024
SET = 2048
NUM = 32768
PART_KEY = 16384
GROUP = 32768
UNIQUE = 65536