-
Notifications
You must be signed in to change notification settings - Fork 166
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
ct_cursor with ct_param #640
Comments
I have no idea. What do you have in mind? What kind of query? |
ok. in file ct_cursor.c in src/ctlib/unittests directory there is following snippet of code : strcpy(text, "select col1 from #test_table where 1 = 1"); ret = ct_cursor(cmd, CS_CURSOR_DECLARE, name, CS_NULLTERM, text, CS_NULLTERM, CS_UNUSED); ... while ((results_ret = ct_results(cmd, &result_type)) == CS_SUCCEED) ...
I was wondering if query was changed to it would require me to bind input variable "@col1" in standard way - ie. with ct_param call; I don't know whether it is by design or not. |
Hello there,
Is it possible to bind input parameter values via ct_param in CS_COMMAND initiated with ct_cursor (CS_CURSOR_DECLARE) ?
I cannot find any examples to do it ?
When I try i receive error from MSSQL server "cursor has not been declared".
ct_param return CS_FAIL because cmd_type after cs_cursor has value that is not listed in swich
in file ct.c around line 3330 (freetds version 1.4.26)
The text was updated successfully, but these errors were encountered: