public inbox for [email protected]
help / color / mirror / Atom feedPATCH: Resolving issue regarding FTS Parser name
2+ messages / 2 participants
[nested] [flat]
* PATCH: Resolving issue regarding FTS Parser name
@ 2016-04-14 14:48 Sanket Mehta <[email protected]>
2016-04-14 19:14 ` Re: PATCH: Resolving issue regarding FTS Parser name Dave Page <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Sanket Mehta @ 2016-04-14 14:48 UTC (permalink / raw)
To: pgadmin-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 #}
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PATCH: Resolving issue regarding FTS Parser name
2016-04-14 14:48 PATCH: Resolving issue regarding FTS Parser name Sanket Mehta <[email protected]>
@ 2016-04-14 19:14 ` Dave Page <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Dave Page @ 2016-04-14 19:14 UTC (permalink / raw)
To: Sanket Mehta <[email protected]>; +Cc: pgadmin-hackers
Thanks - applied.
On Thu, Apr 14, 2016 at 3:48 PM, Sanket Mehta
<[email protected]> wrote:
> 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
>
--
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-04-14 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-14 14:48 PATCH: Resolving issue regarding FTS Parser name Sanket Mehta <[email protected]>
2016-04-14 19:14 ` 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