Skip to content

Commit 2105cb7

Browse files
committed
Correct pg syntax
1 parent 1e3e42a commit 2105cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discvrcore/src/org/labkey/discvrcore/AuditSummaryUserSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private SimpleTable<?> generateAuditSql(String tableName, String eventType, Cont
138138
{
139139
if (st.getSqlDialect().isPostgreSQL())
140140
{
141-
st.addColumn(new ExprColumn(st, FieldKey.fromString("primaryKey"), new SQLFragment("right(" + ExprColumn.STR_TABLE_ALIAS + ".lsid, position('.', reverse(" + ExprColumn.STR_TABLE_ALIAS + ".lsid))-1)"), JdbcType.VARCHAR, lsid));
141+
st.addColumn(new ExprColumn(st, FieldKey.fromString("primaryKey"), new SQLFragment("right(" + ExprColumn.STR_TABLE_ALIAS + ".lsid, position('.' IN reverse(" + ExprColumn.STR_TABLE_ALIAS + ".lsid))-1)"), JdbcType.VARCHAR, lsid));
142142
}
143143
else if (ti.getSqlDialect().isSqlServer())
144144
{

0 commit comments

Comments
 (0)