Yuki Wong

Results 9 comments of Yuki Wong

@eamon-bell I encountered similar problems when trying to understand the UniqueIdentifier code. I've created a PR for supporting MarshalText. Let's see if it'll be merged.

@eamon-bell PR #520 has been merged. Can you try it out? Following is an example of how to use the new `MarshalText()` function: ``` uid := UniqueIdentifier{0x01, 0x23, 0x45, 0x67,...

@m4ver1k I was able to reproduce the issue. I delve a bit deeper into the driver, looks like the culprit comes from https://github.com/denisenkom/go-mssqldb/blob/master/types.go#L1121 , when the parameter is nil, the...

@scbizu What is your table schema? What is the query you're running? Why can't duplicate rows be insert into the table (I'm guessing there is a unique column in your...

I doubled checked and tried again with the query `"insert into foo (baz) values (1); select ID = convert(bigint, SCOPE_IDENTITY())"` and I do get the violation of unique key constraint...

I've pulled Error out from this PR. @denisenkom can you check?

@genyslt , This is because when `SET NOCOUNT IS OFF`, another result set is returned. In your script, you have ``` $query = 'INSERT INTO Cars_In (CarId, Amount) VALUES (1,2);...

@genyslt , "Command(s) completed successfully" is not a result. "(1 row(s) affected)" is. And yes, your while loop is the way to go, assuming the scope identity query is always...

Since scope_identity can be easily retrieved by `sqlsrv_query($conn, "SELECT SCOPE_IDENTITY() AS ID")`, we've decided we are not going to design another API for this.