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

Fixed exceptions in some JDBC drivers when working with chars #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Bo98
Copy link
Collaborator

@Bo98 Bo98 commented Dec 19, 2018

Not all JDBC drivers support java.lang.Character (for whatever reason). Notably MariaDB, Oracle and SQL Server. I've added a FieldConverter to convert the SQL arg into a String which is accepted by all 3 (+ 1 for JTDS) JDBC drivers. Note that the underlying SQL type remains unchanged so this should have no backwards compatibility concerns.

The new CharacterCompatFieldConverter currently resides in this repository but it should probably be moved into ormlite-core. Perhaps into a new package com.j256.ormlite.field.converters where we can also move BooleanNumberFieldConverter too (currently resides in BaseDatabaseType).

This fixes some exceptions first reported in issue #2.

@Bo98 Bo98 mentioned this pull request Dec 19, 2018
@j256
Copy link
Owner

j256 commented Dec 10, 2021

Hey @Bo98 tried to ping you via your email. Any interest in becoming an ormlite maintainer? Not a ton of extra work but I'd love to get another pair of eyes on it. Please ping me at my contact form. https://256stuff.com/gray/email/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants