Skip to content

Commit 358ca96

Browse files
committed
Updated to verison 2.3
1 parent fd3ed55 commit 358ca96

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-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 errorCode in []:
93+
raise IntegrityError(error_code_string + ': ' + errorString)
9494
elif error_code in protocol.INTERNAL_ERRORS:
9595
raise InternalError(error_code_string + ': ' + error_string)
9696
elif error_code in protocol.PROGRAMMING_ERRORS:

0 commit comments

Comments
 (0)