Skip to content

fix: add sybase 12.5 LastInsertedId() support#77

Open
Jesse0Michael wants to merge 2 commits into
minus5:masterfrom
Jesse0Michael:12.5-last-inserted-rows-affected
Open

fix: add sybase 12.5 LastInsertedId() support#77
Jesse0Michael wants to merge 2 commits into
minus5:masterfrom
Jesse0Michael:12.5-last-inserted-rows-affected

Conversation

@Jesse0Michael

Copy link
Copy Markdown

adds (some) LastInsertedId() support for the sybase 12.5 compatibility mode. statusRowSybase125 will now be used in the executed sql. it will cast the returned values to int64s that can be cast from in mssql_stmt.go

Support is not perfect because LastInsertedId() returns the last inserted id from the whole connection, not just the scope of the sql statements.

adds (some) LastInsertedId() support for the sybase 12.5 compatibility mode. statusRowSybase125 will now be used in the executed sql. it will cast the returned values to int64s that can be cast from in mssql_stmt.go

Support is not perfect because LastInsertedId() returns the last inserted id from the whole connection, not just the scope of the sql statements.
sybase 12.5 only goes up to an int32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant