forked from citusdata/mongo_fdw
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ReScanForeignScan API to make the parameterized query work
correctly. Sub-select or correlated queries that use a parameterized plan uses ReScanForeignScan API. However, this API is not correctly rescanning the data. In the case of parameters, we need to recreate the Mongo cursor that fetches the data again. The patch does the same. In passing, refactor some code in this area so that Mongo cursor is created from MongoIterateForeignScan() that is called after Begin and ReScan APIs. However, create a Mongo cursor only if it was not created already. FDW-103, Vaibhav Dalvi, reviewed by Suraj Kharage.
- Loading branch information
1 parent
72ac0c0
commit 3571072
Showing
4 changed files
with
190 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters