Treat VARBINARY and LONGVARBINARY as string types
(for our purposes, i.e. put values inside quotes).
This commit is contained in:
parent
c39def352c
commit
b68fb4764c
1 changed files with 1 additions and 1 deletions
|
@ -634,7 +634,7 @@ public class DbMapping implements Updatable {
|
||||||
Column c = s.getColumn (columnName);
|
Column c = s.getColumn (columnName);
|
||||||
if (c == null)
|
if (c == null)
|
||||||
throw new SQLException ("Column "+columnName+" not found in "+this);
|
throw new SQLException ("Column "+columnName+" not found in "+this);
|
||||||
return c.isString ();
|
return c.isString () || c.isVarBinary () || c.isLongVarBinary ();
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
throw new SQLException (x.getMessage ());
|
throw new SQLException (x.getMessage ());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue