Skip to content

Commit a099839

Browse files
committed
Update permission escape character and the manual.
1 parent d5b984e commit a099839

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

src/etc/doc/fbjava.pdf

143 Bytes
Binary file not shown.

src/etc/doc/fbjava.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124

125125
<para>The PERMISSION_GROUP_GRANT table associates PERMISSION_GROUP with Firebird users and
126126
roles. This association is done by a DATABASE_PATTERN and a GRANTEE_TYPE/GRANTEE_PATTERN.
127-
Patterns are SIMILAR TO patterns escaped by the '|' symbol. Pay attention when using special
127+
Patterns are SIMILAR TO patterns escaped by the '&amp;' symbol. Pay attention when using special
128128
SIMILAR TO characters like underline, if they refer to actual database, user or role name
129129
parts, they need to be escaped. GRANTEE_TYPE defines if GRANTEE_PATTERN refers to a ROLE or
130130
USER.</para>
@@ -714,7 +714,17 @@ create procedure procGenRows (numRows integer) returns (n integer)
714714
<section id="fbjava-known-issues">
715715
<title>Known issues</title>
716716

717-
<para>In this test version it's not possible to use Jaybird's non-pure-Java connection string
718-
protocols like embedded, native and local.</para>
717+
718+
<itemizedlist spacing="normal">
719+
<listitem>
720+
<para>In this test version it's not possible to use Jaybird's non-pure-Java connection string
721+
protocols like embedded, native and local.</para>
722+
</listitem>
723+
724+
<listitem>
725+
<para>Firebird 3.0.0 has a bug with external selectable procedures without input parameters.
726+
A workaround is to declare a (dummy integer = 1) parameter.</para>
727+
</listitem>
728+
</itemizedlist>
719729
</section>
720730
</article>

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)