We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Do you know if TVP feature supports non stored procedure queries? I tried the beta 5.10 driver and it fails for a non stored procedure query.
Below is the details: CREATE TYPE id_table AS TABLE(id INT PRIMARY KEY);
CREATE TABLE test_table (id INT PRIMARY KEY);
MERGE INTO test_table t USING ? s ON s.id = t.id WHEN NOT MATCHED THEN INSERT (id) VALUES(s.id);
The 5.1 beta driver throws the following error: Fatal error: sqlsrv_params_container::get_next_parameter - The parameter requested is missing!
Following are my parameters in PHP:
$params = [ [['id_table' => [[1], [2], [3]]]], ];
The text was updated successfully, but these errors were encountered:
Hi @atomusr, we will investigate and get back to you on this.
Sorry, something went wrong.
Hi @atomusr , FYI, this will be fixed in the upcoming beta release.
5.10.0-beta 2 is just released. Please give it a try, @atomusr
Closing this now please feel free to ask us to reopen.
No branches or pull requests
Hello,
Do you know if TVP feature supports non stored procedure queries? I tried the beta 5.10 driver and it fails for a non stored procedure query.
Below is the details:
CREATE TYPE id_table AS TABLE(id INT PRIMARY KEY);
CREATE TABLE test_table (id INT PRIMARY KEY);
MERGE INTO test_table t
USING ? s ON s.id = t.id
WHEN NOT MATCHED THEN
INSERT (id) VALUES(s.id);
The 5.1 beta driver throws the following error:
Fatal error: sqlsrv_params_container::get_next_parameter - The parameter requested is missing!
Following are my parameters in PHP:
$params = [
[['id_table' => [[1], [2], [3]]]],
];
The text was updated successfully, but these errors were encountered: