Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support long type #51

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.1.0
current_version = 1.1.1
commit = True
tag = True

Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ Changelog
=========

- Next version - unreleased
- 1.1.1 - 2017-03-21

- Don't fail on dates before 1900 on Python < 3.

Expand Down
2 changes: 1 addition & 1 deletion README_development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ Build a new release

9. Send new version and tags to github origin. ::

$ git push origin master --tags
$ git push origin master --follow-tags
7 changes: 5 additions & 2 deletions jaydebeapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# License along with JayDeBeApi. If not, see
# <http://www.gnu.org/licenses/>.

__version_info__ = (1, 1, 0)
__version_info__ = (1, 1, 1)
__version__ = ".".join(str(i) for i in __version_info__)

import datetime
Expand Down Expand Up @@ -626,6 +626,8 @@ def to_py(rs, col):

_to_boolean = _java_to_py('booleanValue')

_to_long = _java_to_py('longValue')

def _init_types(types_map):
global _jdbc_name_to_const
_jdbc_name_to_const = types_map
Expand Down Expand Up @@ -663,5 +665,6 @@ def _init_converters(types_map):
'INTEGER': _to_int,
'SMALLINT': _to_int,
'BOOLEAN': _to_boolean,
'BIT': _to_boolean
'BIT': _to_boolean,
'BIGINT': _to_long
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
setup(
#basic package data
name = 'JayDeBeApi',
version = '1.1.0',
version = '1.1.1',
author = 'Bastian Bowe',
author_email = '[email protected]',
license = 'GNU LGPL',
Expand Down