PromucFlow_constructor/app/server/appsmith-plugins
tkAppsmith d9024156d5
fix: Added single quotes on hint query containing mustache substitution fo… (#22848)
## Description

> In this PR, single quotes have been added around substitution
expression in hint query of Snowflake DB.
> This fixes the issue:
https://github.com/appsmithorg/appsmith/issues/22132
> Single quotes is necessary in hint text because Snowflake DB don't
have prepared statements mode yet and with single quotes, the
substituted values appear in query without quotes leading to query
execution error.

Fixes #22132 


## Type of change

- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?
> Running a query in Snowflake DB integration, having substitution
expression not enclosed in quotes will give an error.
> Currently the hint query that has substitution expression has not
enclosed then in single quotes. Hence adding single quotes around them
to provide user with proper hint.

- Manual
### Test Plan
> Create a new "Create Query" for Snowflake DB. The hint query should
contain the sample substitution expression in single quotes.
> Run a fetch query for Snowflake DB containing substitution expression
without single quotes enclosing it and it should return an error.
> Run the query with quotes enclosing substitution expression and the
query should run successfully.


## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-05-03 22:06:22 +05:30
..
amazons3Plugin chore: Fix unnecessary re-shading of jars (#21994) 2023-04-03 17:49:21 +05:30
arangoDBPlugin fix: Hint text in create query (sql based datasources) (#22190) 2023-04-10 17:50:09 +05:30
dynamoPlugin chore: Fix unnecessary re-shading of jars (#21994) 2023-04-03 17:49:21 +05:30
elasticSearchPlugin chore: Fix unnecessary re-shading of jars (#21994) 2023-04-03 17:49:21 +05:30
firestorePlugin fix: [#21180] Firestore plugin -> "Timestamp Path" fix (#22646) 2023-04-27 11:03:22 +05:30
googleSheetsPlugin fix: gsheet trigger 500 issue fixed (#22899) 2023-05-02 16:51:11 +05:30
graphqlPlugin Fix stringified JSON response (#22450) (#22498) 2023-04-26 22:22:08 +05:30
jsPlugin chore: Fix unnecessary re-shading of jars (#21994) 2023-04-03 17:49:21 +05:30
mongoPlugin chore: Fix unnecessary re-shading of jars (#21994) 2023-04-03 17:49:21 +05:30
mssqlPlugin fix: Hint text in create query (sql based datasources) (#22190) 2023-04-10 17:50:09 +05:30
mysqlPlugin fix: Hint text in create query (sql based datasources) (#22190) 2023-04-10 17:50:09 +05:30
oraclePlugin chore: remove Oracle integration feature flag (#22822) 2023-05-02 08:51:04 +05:30
postgresPlugin fix: Allow empty password in PostgreSQL trust authentication login (#22186) 2023-04-13 16:20:46 +06:00
redisPlugin chore: Fix unnecessary re-shading of jars (#21994) 2023-04-03 17:49:21 +05:30
redshiftPlugin fix: Hint text in create query (sql based datasources) (#22190) 2023-04-10 17:50:09 +05:30
restApiPlugin feat: remove bloat from large files during upload (WIP) (#21757) 2023-04-27 10:33:32 +07:00
saasPlugin chore: Fix unnecessary re-shading of jars (#21994) 2023-04-03 17:49:21 +05:30
smtpPlugin chore: Fix unnecessary re-shading of jars (#21994) 2023-04-03 17:49:21 +05:30
snowflakePlugin fix: Added single quotes on hint query containing mustache substitution fo… (#22848) 2023-05-03 22:06:22 +05:30
pom.xml feature: Introduce Oracle Integration behind feature flag (#21273) 2023-03-16 16:54:25 +05:30