Skip to content

Commit 46d5b3a

Browse files
committed
Merge pull request #111 from tvincentNuoDB/master
PyNuoDB 2.3 release
2 parents fad244f + 81a0643 commit 46d5b3a

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ Resources
128128

129129
DB-API 2.0: http://www.python.org/dev/peps/pep-0249/
130130

131-
NuoDB Documentation: http://doc.nuodb.com/display/DOC/Getting+Started
131+
NuoDB Documentation: http://doc.nuodb.com/display/DOC/NuoDB+Online+Documentation
132132

133133
License
134134
-------
135135

136136
PyNuoDB is licensed under a `BSD 3-Clause License <https://github.com/nuodb/nuodb-python/blob/master/LICENSE>`_.
137137

138-
.. _Documentation: http://doc.nuodb.com/display/DOC/Getting+Started
138+
.. _Documentation: http://doc.nuodb.com/display/doc/
139139
.. _NuoDB: http://www.nuodb.com/
140140
.. _CPython: http://www.python.org/
141141
.. _PEP 249: https://www.python.org/dev/peps/pep-0249/

pynuodb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '2.2'
1+
__version__ = '2.3'
22

33
from .connection import *
44
from .datatype import *

pynuodb/datatype.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def __cmp__(self, other):
121121
"double precision":NUMBER,
122122
"date":DATETIME,
123123
"timestamp":DATETIME,
124+
"datetime":DATETIME,
124125
"time":DATETIME,
125126
"clob":BINARY,
126127
"blob":BINARY,

pynuodb/exception.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def db_error_handler(error_code, error_string):
8989
raise DataError(error_code_string + ': ' + error_string)
9090
elif error_code in protocol.OPERATIONAL_ERRORS:
9191
raise OperationalError(error_code_string + ': ' + error_string)
92-
# elif errorCode in []:
93-
# raise IntegrityError(error_code_string + ': ' + errorString)
92+
elif error_code in protocol.INTEGRITY_ERRORS:
93+
raise IntegrityError(error_code_string + ': ' + error_string)
9494
elif error_code in protocol.INTERNAL_ERRORS:
9595
raise InternalError(error_code_string + ': ' + error_string)
9696
elif error_code in protocol.PROGRAMMING_ERRORS:

pynuodb/protocol.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@
252252
DEADLOCK,
253253
IS_SHUTDOWN}
254254

255+
INTEGRITY_ERRORS = {UNIQUE_DUPLICATE}
256+
255257
PROGRAMMING_ERRORS = {SYNTAX_ERROR,
256258
CONNECTION_ERROR,
257259
APPLICATION_ERROR,

0 commit comments

Comments
 (0)