Unable to create user-defined function in C++
While I try to deploying user-defined function developed in C++, I'm getting this error "Tried to copy a 20-byte string to 7-byte VString object; VString is too small". Kindly help me with this. Thanks in advance.
0
Comments
can you post your code?
@skeswani Please find an attached text file
the problem I think is here
this result in the copy of a buf which is 20 bytes into a response that is 7 bytes
change this to
note, putting s '>' sign before the line will help format the code correctly in the forums
20 or more, this is the output return type for the scalar function. basically the scalar function return varchar(20) in this case. but maybe you want to make it varchar(32) for good measure
@skeswani Thanks its work.