Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3e0deb35
Commit
3e0deb35
authored
Sep 28, 2022
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdasql: Select statements return -1 for affected rows in ICommandText Execute.
parent
d4720191
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
session.c
dlls/msdasql/session.c
+9
-7
No files found.
dlls/msdasql/session.c
View file @
3e0deb35
...
@@ -1244,13 +1244,6 @@ static HRESULT WINAPI command_Execute(ICommandText *iface, IUnknown *outer, REFI
...
@@ -1244,13 +1244,6 @@ static HRESULT WINAPI command_Execute(ICommandText *iface, IUnknown *outer, REFI
return
E_FAIL
;
return
E_FAIL
;
}
}
ret
=
SQLRowCount
(
hstmt
,
&
results
);
if
(
ret
!=
SQL_SUCCESS
)
ERR
(
"SQLRowCount failed (%d)
\n
"
,
ret
);
if
(
affected
)
*
affected
=
results
;
*
rowset
=
NULL
;
*
rowset
=
NULL
;
if
(
!
wcsnicmp
(
command
->
query
,
L"select "
,
7
))
if
(
!
wcsnicmp
(
command
->
query
,
L"select "
,
7
))
{
{
...
@@ -1273,7 +1266,16 @@ static HRESULT WINAPI command_Execute(ICommandText *iface, IUnknown *outer, REFI
...
@@ -1273,7 +1266,16 @@ static HRESULT WINAPI command_Execute(ICommandText *iface, IUnknown *outer, REFI
IRowset_Release
(
&
msrowset
->
IRowset_iface
);
IRowset_Release
(
&
msrowset
->
IRowset_iface
);
}
}
else
else
{
ret
=
SQLRowCount
(
hstmt
,
&
results
);
if
(
ret
!=
SQL_SUCCESS
)
ERR
(
"SQLRowCount failed (%d)
\n
"
,
ret
);
SQLFreeStmt
(
hstmt
,
SQL_CLOSE
);
SQLFreeStmt
(
hstmt
,
SQL_CLOSE
);
}
if
(
affected
)
*
affected
=
results
;
return
hr
;
return
hr
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment