Package MySQLdb :: Package constants :: Module CR
[hide private]
[frames] | no frames]

Source Code for Module MySQLdb.constants.CR

 1  """MySQL Connection Errors 
 2   
 3  Nearly all of these raise OperationalError. COMMANDS_OUT_OF_SYNC 
 4  raises ProgrammingError. 
 5   
 6  """ 
 7   
 8  MIN_ERROR = 2000 
 9  MAX_ERROR = 2999 
10  UNKNOWN_ERROR = 2000 
11  SOCKET_CREATE_ERROR = 2001 
12  CONNECTION_ERROR = 2002 
13  CONN_HOST_ERROR = 2003 
14  IPSOCK_ERROR = 2004 
15  UNKNOWN_HOST = 2005 
16  SERVER_GONE_ERROR = 2006 
17  VERSION_ERROR = 2007 
18  OUT_OF_MEMORY = 2008 
19  WRONG_HOST_INFO = 2009 
20  LOCALHOST_CONNECTION = 2010 
21  TCP_CONNECTION = 2011 
22  SERVER_HANDSHAKE_ERR = 2012 
23  SERVER_LOST = 2013 
24  COMMANDS_OUT_OF_SYNC = 2014 
25  NAMEDPIPE_CONNECTION = 2015 
26  NAMEDPIPEWAIT_ERROR = 2016 
27  NAMEDPIPEOPEN_ERROR = 2017 
28  NAMEDPIPESETSTATE_ERROR = 2018 
29  CANT_READ_CHARSET = 2019 
30  NET_PACKET_TOO_LARGE = 2020 
31