[postgis-tickets] r16882 - [proc-upgrade] Don't print more lines after oneliner GRANTs
Sandro Santilli
strk at kbt.io
Wed Oct 10 02:09:26 PDT 2018
Author: strk
Date: 2018-10-10 14:09:26 -0700 (Wed, 10 Oct 2018)
New Revision: 16882
Modified:
trunk/utils/postgis_proc_upgrade.pl
Log:
[proc-upgrade] Don't print more lines after oneliner GRANTs
Fixes #4197
Modified: trunk/utils/postgis_proc_upgrade.pl
===================================================================
--- trunk/utils/postgis_proc_upgrade.pl 2018-10-10 20:41:27 UTC (rev 16881)
+++ trunk/utils/postgis_proc_upgrade.pl 2018-10-10 21:09:26 UTC (rev 16882)
@@ -321,10 +321,12 @@
if ( /^grant select\s+(\S+)\s*/i )
{
print;
- while(<INPUT>)
- {
- print;
- last if /\;\s*$/;
+ if ( ! /\;\s*$/) {
+ while(<INPUT>)
+ {
+ print;
+ last if /\;\s*$/;
+ }
}
}
More information about the postgis-tickets
mailing list