You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On sql Server, the same request returns 1 affected rows
FYI: Babelfish works good with these statements :
create table #tmp2 (c1 int not null)
insert into #tmp2 (c1) values(1) --updated rows = 1 : good
update #tmp2 set c1 = 2 --updated rows = 1 : good
delete #tmp2 --updated rows = 1 : good
delete #tmp2 --updated rows =0 : good
Version
BABEL_4_X_DEV (Default)
Extension
babelfishpg_tsql (Default)
Which flavor of Linux are you using when you see the bug?
Amazon Linux
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct.
The text was updated successfully, but these errors were encountered:
I got the good value if I do "select @@rowcount" after the select into statement.
I rephrased my bug description, it's about the function "int ExecuteNonQuery()" my problem.
What happened?
When I execute "int SqlCommand.ExecuteNonQuery()", this function return always -1 on babelfish when the command is a "select into" statement.
Ref:
https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlcommand.executenonquery?view=net-8.0-pp
We see the same error in DBeaver :
On sql Server, the same request returns 1 affected rows
FYI: Babelfish works good with these statements :
create table #tmp2 (c1 int not null)
insert into #tmp2 (c1) values(1) --updated rows = 1 : good
update #tmp2 set c1 = 2 --updated rows = 1 : good
delete #tmp2 --updated rows = 1 : good
delete #tmp2 --updated rows =0 : good
Version
BABEL_4_X_DEV (Default)
Extension
babelfishpg_tsql (Default)
Which flavor of Linux are you using when you see the bug?
Amazon Linux
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: