[QP-8036] PgTableAnalyzer.BuildTableFunctionStructure에서, 리턴 테이블에 컬럼 이름 있는 경우 그 이름 가져오기 #79
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
현재 Qsi.PostgreSql는 nuget의 PgQuery을 사용하는데, PgQuery는 테이블 함수를 포함하는 쿼리를 파싱하도록 하면, 만약 해당 테이블 함수가 리턴값으로 컬럼을 갖는 테이블을 리턴하면, 그 함수에 해당하는 노드가 갖는
Parameter
목록에 그 함수의 매개변수와 그 함수가 리턴하는 테이블의 컬럼들을 모두 포함해서 리턴합니다. (테이블 함수가 리턴값으로 컬럼을 갖는 테이블을 리턴하지 않는다면Parameter
목록에 리턴값에 관한 정보가 포함되지는 않습니다.)기존 Qsi.PostgreSql 은 이처럼 테이블 함수의 리턴값이 컬럼을 갖는 테이블인 경우에 관한 처리가 없어, 테이블 함수의 리턴 테이블에서 컬럼이름으로 값을 가져오려 할 경우 '그러한 컬럼이 없다'는 에러가 발생합니다. 이 PR은 그에 관한 구현을 추가하여 이 에러를 해결합니다.