Skip to content

Exception when create object with string including single quote #137

@Altarus1

Description

@Altarus1

try { Dao<classExample, Integer> dao = getDao(classExample.class); dao.createIfNotExists(obj); } catch (SQLException e) { e.printStackTrace(); }
classExample have string, and if I try to insert an object with single quote ('), then it catch exception.
In log, we can see that sql request is using single quote to round string values

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions