PL-7884 Exception occurs during an attempt to apply filter above pinned when the entity is non-uuid

This commit is contained in:
Andrey Subbotin 2016-10-04 16:00:55 +04:00
parent 59473adb4c
commit 191ee4b467
4 changed files with 14 additions and 1 deletions

View File

@ -756,7 +756,7 @@ create table SYS_QUERY_RESULT (
ID identity not null,
SESSION_ID varchar(36) not null,
QUERY_KEY integer not null,
ENTITY_ID varchar(36) not null,
ENTITY_ID varchar(36),
STRING_ENTITY_ID varchar(255),
INT_ENTITY_ID integer,
LONG_ENTITY_ID bigint,

View File

@ -0,0 +1 @@
alter table SYS_QUERY_RESULT alter column ENTITY_ID SET NULL^

View File

@ -58,6 +58,12 @@ public class MysqlDbTypeConverter implements DbTypeConverter {
return Types.VARCHAR;
else if (javaClass == Boolean.class)
return Types.BIT;
else if (javaClass == String.class)
return Types.VARCHAR;
else if (javaClass == Integer.class)
return Types.INTEGER;
else if (javaClass == Long.class)
return Types.BIGINT;
return Types.OTHER;
}
}

View File

@ -60,6 +60,12 @@ public class OracleDbTypeConverter implements DbTypeConverter {
return Types.VARCHAR;
else if (javaClass == Boolean.class)
return Types.CHAR;
else if (javaClass == String.class)
return Types.VARCHAR;
else if (javaClass == Integer.class)
return Types.INTEGER;
else if (javaClass == Long.class)
return Types.BIGINT;
return Types.OTHER;
}
}