--- a/branches/ZMySQLDA-2/ZMySQLDA/db.py
+++ b/branches/ZMySQLDA-2/ZMySQLDA/db.py
@@ -83,8 +83,8 @@
 # 
 ##############################################################################
 
-'''$Id: db.py 647 2010-11-10 01:49:25Z eikenberry $'''
-__version__='$Revision: 647 $'[11:-2]
+'''$Id: db.py 649 2010-11-10 02:27:54Z eikenberry $'''
+__version__='$Revision: 649 $'[11:-2]
 
 import time
 import _mysql
@@ -485,7 +485,7 @@
             info['extra'] = Extra,
             info['description'] = ' '.join([Type, field_default, Extra or '',
                                         key_types.get(Key, Key or ''),
-                                        Null != 'NO' and 'NOT NULL' or ''])
+                                        Null == 'NO' and 'NOT NULL' or ''])
             info['nullable'] = (Null == 'YES') and 1 or 0
             if Key:
                 info['index'] = True