public inbox for [email protected]
help / color / mirror / Atom feedPATCH: To fix the issue in Rules node (pgAdmin4)
2+ messages / 2 participants
[nested] [flat]
* PATCH: To fix the issue in Rules node (pgAdmin4)
@ 2016-09-13 08:01 Murtuza Zabuawala <[email protected]>
2016-09-14 09:39 ` Re: PATCH: To fix the issue in Rules node (pgAdmin4) Dave Page <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Murtuza Zabuawala @ 2016-09-13 08:01 UTC (permalink / raw)
To: pgadmin-hackers
Hi,
PFA minor patch for rules node where it was throwing when user tries to
create new rule.
RM#1681
--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Attachments:
[text/x-patch] RM_1681.patch (1.0K, 3-RM_1681.patch)
download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/rules/sql/update.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/rules/sql/update.sql
index 099d6e4..2476823 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/rules/sql/update.sql
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/rules/sql/update.sql
@@ -7,7 +7,7 @@
{% if data.name and data.name != o_data.name %}
ALTER RULE {{ conn|qtIdent(o_data.name) }} ON {{ conn|qtIdent(o_data.schema, o_data.view) }} RENAME TO {{ conn|qtIdent(data.name) }};{{ '\r\r' }}
{% endif %}
-{% if data.event or data.do_instead or data.condition or data.statements %}
+{% if data.event or data.do_instead is defined or data.condition or data.statements %}
CREATE OR REPLACE RULE {{ conn|qtIdent(rule_name) }} AS
ON {% if data.event and data.event != o_data.event %}{{ data.event|upper }}{% else %}{{ o_data.event|upper }}{% endif %}
TO {{ conn|qtIdent(o_data.schema, o_data.view) }}
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PATCH: To fix the issue in Rules node (pgAdmin4)
2016-09-13 08:01 PATCH: To fix the issue in Rules node (pgAdmin4) Murtuza Zabuawala <[email protected]>
@ 2016-09-14 09:39 ` Dave Page <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Dave Page @ 2016-09-14 09:39 UTC (permalink / raw)
To: Murtuza Zabuawala <[email protected]>; +Cc: pgadmin-hackers
Thanks, applied.
On Tue, Sep 13, 2016 at 9:01 AM, Murtuza Zabuawala
<[email protected]> wrote:
> Hi,
>
> PFA minor patch for rules node where it was throwing when user tries to
> create new rule.
> RM#1681
>
> --
> Regards,
> Murtuza Zabuawala
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-09-14 09:39 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-09-13 08:01 PATCH: To fix the issue in Rules node (pgAdmin4) Murtuza Zabuawala <[email protected]>
2016-09-14 09:39 ` Dave Page <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox