Skip to content

Commit 4c062dc

Browse files
committed
Use a better escape who is not going to interfere with file paths.
1 parent 0ae5f50 commit 4c062dc

File tree

1 file changed

+3
-3
lines changed
  • src/fbjava-impl/src/main/java/org/firebirdsql/fbjava/impl

1 file changed

+3
-3
lines changed

src/fbjava-impl/src/main/java/org/firebirdsql/fbjava/impl/DbPolicy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ static void databaseOpened() throws SQLException
9090
" on pg.id = pgg.permission_group\n" +
9191
" join permission p\n" +
9292
" on p.permission_group = pg.id\n" +
93-
" where cast(? as varchar(1024)) similar to pgg.database_pattern escape '\\' and\n" +
93+
" where cast(? as varchar(1024)) similar to pgg.database_pattern escape '|' and\n" +
9494
" ((pgg.grantee_type = 'USER' and\n" +
95-
" cast(? as varchar(512)) similar to pgg.grantee_pattern escape '\\') or\n" +
95+
" cast(? as varchar(512)) similar to pgg.grantee_pattern escape '|') or\n" +
9696
" (pgg.grantee_type = 'ROLE' and\n" +
97-
" cast(? as varchar(512)) similar to pgg.grantee_pattern escape '\\'))");
97+
" cast(? as varchar(512)) similar to pgg.grantee_pattern escape '|'))");
9898
}
9999
}
100100
}

0 commit comments

Comments
 (0)