appsmithorg / appsmithorg/appsmith
[Bug]-[45]:For an SQL query, can't make this regex work
- Langage dominant
- TypeScript
- Étoiles
- 40.9k
- Forks
- 4.8k
- Merge moyen
- 1 j 22 h
- PR mergées (30 j)
- 45
Description
## Description
For an SQL query can't make this regex work: '{{Input1.text.replace(/'/, "")}}'
for example:
`SELECT * FROM users where gender = '{{Input1.text.replace(/'/, "")}}' ORDER BY id LIMIT 10;`
### Steps to reproduce the behaviour:
1. Add an input widget: enter text `male` within the input
2. Create a query on the test postgres DB: `SELECT * FROM users where gender = '{{Input1.text.replace(/'/, "")}}' ORDER BY id LIMIT 10;`
3. The query above doesn't run

### Workaround
https://github.com/appsmithorg/appsmith/issues/7484#issuecomment-1021190239
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.