appsmithorg / appsmithorg/appsmith

[Bug]-[45]:For an SQL query, can't make this regex work

オープン
#7,484 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
Bug Integrations Pod General Integrations Product Low Medium effort Postgres Production Query & JS Pod Query Widgets & IDE Pod
主要言語
TypeScript
スター
40.9k
フォーク
4.8k
平均マージ
1日 22時間
マージ済み PR(30日)
45

説明

## 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

![image](https://user-images.githubusercontent.com/1944800/133479682-45179d42-7ce6-41a8-9618-63ea88449128.png)

### Workaround

https://github.com/appsmithorg/appsmith/issues/7484#issuecomment-1021190239

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。