Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TVP as an argument of a procedure does not require TypeName to be specified #3107

Open
wants to merge 9 commits into
base: BABEL_4_X_DEV
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
TVP as an argument of a procedure does not require TypeName to be spe…
…cified

Signed-off-by: Tanya Gupta <tanyagp@amazon.com>
  • Loading branch information
Tanya Gupta committed Nov 13, 2024
commit 0016f99c8f283b6e3c143b09b7b3335c5ee4a3d3
4 changes: 3 additions & 1 deletion contrib/babelfishpg_tds/src/backend/tds/tdsrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ ReadParameters(TDSRequestSP request, uint64_t offset, StringInfo message, int *p
TdsIoFunctionInfo tempFuncInfo;
uint16 paramOrdinal = 0;
int retStatus;
char *proc_name;

while (offset < message->len)
{
Expand Down Expand Up @@ -1582,12 +1583,13 @@ ReadParameters(TDSRequestSP request, uint64_t offset, StringInfo message, int *p
case TDS_TYPE_TABLE:
{
temp->tvpInfo = palloc0(sizeof(TvpData));
proc_name = request->name.data;

/*
* Sets the col metadata and also the corresponding row
* data.
*/
SetColMetadataForTvp(temp, message, &offset);
SetColMetadataForTvp(temp, message, &offset, proc_name);
}
break;
case TDS_TYPE_BINARY:
Expand Down
Loading
Loading