annotate MySQLdb/constants/CR.py @ 54:6e31278d3433 MySQLdb

There's no good reason to delay imports when the module is (1) useless without it or (2) you do the same late import more than once.
author kylev
date Mon, 23 Feb 2009 23:52:44 +0000
parents 7773efbe9b30
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
1 """
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
2 MySQL Connection Errors
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
3 -----------------------
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
4
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
5 Nearly all of these raise OperationalError. COMMANDS_OUT_OF_SYNC
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
6 raises ProgrammingError.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
7
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
8 """
14
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
9 __revision__ = "$Revision$"[11:-2]
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
10 __author__ = "$Author$"[9:-2]
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
11
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
12 MIN_ERROR = 2000
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
13 MAX_ERROR = 2999
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
14 UNKNOWN_ERROR = 2000
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
15 SOCKET_CREATE_ERROR = 2001
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
16 CONNECTION_ERROR = 2002
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
17 CONN_HOST_ERROR = 2003
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
18 IPSOCK_ERROR = 2004
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
19 UNKNOWN_HOST = 2005
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
20 SERVER_GONE_ERROR = 2006
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
21 VERSION_ERROR = 2007
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
22 OUT_OF_MEMORY = 2008
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
23 WRONG_HOST_INFO = 2009
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
24 LOCALHOST_CONNECTION = 2010
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
25 TCP_CONNECTION = 2011
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
26 SERVER_HANDSHAKE_ERR = 2012
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
27 SERVER_LOST = 2013
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
28 COMMANDS_OUT_OF_SYNC = 2014
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
29 NAMEDPIPE_CONNECTION = 2015
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
30 NAMEDPIPEWAIT_ERROR = 2016
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
31 NAMEDPIPEOPEN_ERROR = 2017
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
32 NAMEDPIPESETSTATE_ERROR = 2018
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
33 CANT_READ_CHARSET = 2019
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
34 NET_PACKET_TOO_LARGE = 2020