Commit ee6a48c
Fix: Rectified dialect check in ENRGetSystableScan function to also check for the conn_type (#632)
* Fix: Rectified dialect check in ENRGetSystableScan function to also
check for the conn_type
In ENRGetSystableScan, if the dialect is not TSQL_DIALECT and there is a
scan initiated for a catalog (other than Sequence), we return false i.e.
the tuple being scanned for does not exist in ENR. But this is not
reliable in case this scan is initiated from a PG function since the
dialect then would be PG_DIALECT and the scan in ENR would return false,
even though the actual tuple being searched for is in ENR (in case it's
a T-SQL temp table). This results in a "could not open a relation" error
since the tuple also does not exist in pg_catalog.
Task: BABEL-6099
Signed-off-by: Ayush Shah <ayushdsh@amazon.com>1 parent 944fdd8 commit ee6a48c
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
424 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
425 | 435 | | |
426 | 436 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
432 | 441 | | |
433 | 442 | | |
434 | 443 | | |
| |||
0 commit comments