**Description** When the user tries to add a postgres datasource and add any query, if the table name has hyphens in it, then quotes get assigned to first word after the schema and the dot. For example, public."counter"-with-db The quotes should be applied to the whole table name. For example: public."counter-with-db" Fixes https://github.com/appsmithorg/appsmith/issues/10631 Fixes https://github.com/appsmithorg/appsmith/issues/30692 **changes in PR:** 1.updated the regec expression to idetify the table name properly with table name consists of hypens. 2.added a test case for this scenario. **snapshots:** before:  After:  Hi @ajinkyakulkarni @rohan-arthur @Nikhil-Nandagopal ,Please review this PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Enhanced handling of table names in the Postgres plugin to support a wider variety of characters, including hyphens and special characters. - Introduced multiple new database tables for improved testing coverage. - **Bug Fixes** - Adjusted table name processing to correctly format names containing a broader range of characters. - **Tests** - Added new tests to verify the structure and integrity of tables with various naming conventions. - Expanded existing tests to accommodate additional table structures. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||