Skip to content

Conversation

@erezrokah
Copy link
Member

Summary

Noticed this while working on the Firestore source. Looks like we were escaping everything but the constraint name.

@erezrokah erezrokah requested review from a team and candiduslynx and removed request for a team June 13, 2023 10:47
sb.WriteString(", CONSTRAINT ")
sb.WriteString(table.Name)
sb.WriteString("_cqpk PRIMARY KEY (")
sb.WriteString(identifier(table.Name + "_cqpk"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix

@cq-bot cq-bot removed the firestore label Jun 13, 2023
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jun 13, 2023
@kodiakhq kodiakhq bot merged commit 9ea9c79 into cloudquery:main Jun 13, 2023
@erezrokah erezrokah deleted the fix/sqlite_escaping branch June 13, 2023 11:31
kodiakhq bot pushed a commit that referenced this pull request Jun 13, 2023
🤖 I have created a release *beep* *boop*
---


## [2.2.2](plugins-destination-sqlite-v2.2.1...plugins-destination-sqlite-v2.2.2) (2023-06-13)


### Bug Fixes

* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 0f7bd3b ([#11412](#11412)) ([dd1e2e8](dd1e2e8))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 7f6aaff ([#11432](#11432)) ([55dfebc](55dfebc))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 8f72077 ([#11395](#11395)) ([d91fc5c](d91fc5c))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 90670b8 ([#11279](#11279)) ([a6cdc91](a6cdc91))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to b359e74 ([#11405](#11405)) ([5d92765](5d92765))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to d8eacf8 ([#11449](#11449)) ([742dafd](742dafd))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to e258cfb ([#11391](#11391)) ([eacbe9a](eacbe9a))
* **sqlite:** Escape PK constraint name ([#11478](#11478)) ([9ea9c79](9ea9c79))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants