Skip to content

Commit

Permalink
Merge pull request #111 from tvincentNuoDB/master
Browse files Browse the repository at this point in the history
PyNuoDB 2.3 release
  • Loading branch information
mjmichaels committed Jun 30, 2015
2 parents fad244f + 81a0643 commit 46d5b3a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ Resources

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

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

License
-------

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

.. _Documentation: http://doc.nuodb.com/display/DOC/Getting+Started
.. _Documentation: http://doc.nuodb.com/display/doc/
.. _NuoDB: http://www.nuodb.com/
.. _CPython: http://www.python.org/
.. _PEP 249: https://www.python.org/dev/peps/pep-0249/
2 changes: 1 addition & 1 deletion pynuodb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.2'
__version__ = '2.3'

from .connection import *
from .datatype import *
Expand Down
1 change: 1 addition & 0 deletions pynuodb/datatype.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def __cmp__(self, other):
"double precision":NUMBER,
"date":DATETIME,
"timestamp":DATETIME,
"datetime":DATETIME,
"time":DATETIME,
"clob":BINARY,
"blob":BINARY,
Expand Down
4 changes: 2 additions & 2 deletions pynuodb/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def db_error_handler(error_code, error_string):
raise DataError(error_code_string + ': ' + error_string)
elif error_code in protocol.OPERATIONAL_ERRORS:
raise OperationalError(error_code_string + ': ' + error_string)
# elif errorCode in []:
# raise IntegrityError(error_code_string + ': ' + errorString)
elif error_code in protocol.INTEGRITY_ERRORS:
raise IntegrityError(error_code_string + ': ' + error_string)
elif error_code in protocol.INTERNAL_ERRORS:
raise InternalError(error_code_string + ': ' + error_string)
elif error_code in protocol.PROGRAMMING_ERRORS:
Expand Down
2 changes: 2 additions & 0 deletions pynuodb/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@
DEADLOCK,
IS_SHUTDOWN}

INTEGRITY_ERRORS = {UNIQUE_DUPLICATE}

PROGRAMMING_ERRORS = {SYNTAX_ERROR,
CONNECTION_ERROR,
APPLICATION_ERROR,
Expand Down

0 comments on commit 46d5b3a

Please sign in to comment.