public inbox for [email protected]
help / color / mirror / Atom feedFrom: Sanket Mehta <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: PATCH: Resolving issue regarding FTS Parser name
Date: Thu, 14 Apr 2016 20:18:31 +0530
Message-ID: <CA+yw=mNuDg9Tk-xNOvWyqUdgpdPvJx-DkARefsJyOo5L72Cd=w@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
Hi,
PFA the patch for resolving an issue related to FTS Parser name.
Steps to reproduce the issue:
- create fts parser with name "user name"
- Expand fts parser
- Right Click and select properties
- Change name to "user name car"
it's give ERROR: syntax error at or near "name"
LINE 2: RENAME TO user name car;
Please do review the patch and send review comments if any.
Regards,
Sanket Mehta
Sr Software engineer
Enterprisedb
--
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] fts_parser_name_issue.patch (829B, 3-fts_parser_name_issue.patch)
download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_parser/templates/fts_parser/sql/9.1_plus/update.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_parser/templates/fts_parser/sql/9.1_plus/update.sql
index ac29d99..2024410 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_parser/templates/fts_parser/sql/9.1_plus/update.sql
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_parser/templates/fts_parser/sql/9.1_plus/update.sql
@@ -2,7 +2,7 @@
{% if data %}
{% if data.name and data.name != o_data.name %}
ALTER TEXT SEARCH PARSER {{conn|qtIdent(o_data.schema)}}.{{conn|qtIdent(o_data.name)}}
- RENAME TO {{data.name}};
+ RENAME TO {{conn|qtIdent(data.name)}};
{% endif %}
{#in case of rename, use new fts template name #}
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: PATCH: Resolving issue regarding FTS Parser name
In-Reply-To: <CA+yw=mNuDg9Tk-xNOvWyqUdgpdPvJx-DkARefsJyOo5L72Cd=w@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox