tc-hib

Results 33 comments of tc-hib

1. This is not an SQL Server help desk, your problem is not related to Go in any way 2. The maintainers don't speak Chinese 3. You got free software...

We may need to track progress of a long query, so I think the driver should provide a way for the caller to get messages as soon as the driver...

> The current logging code in the driver doesn't print the server provided messages anyway. What are those messages? I only know the [INFO](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/284bb815-d083-4ed5-b33a-bdc2492e322b)/[ERROR](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/9805e9fa-1f8b-4cf8-8f78-8d2602228635) messages, which already are in the...

Oh, I see, thanks. These messages are missing because they're not enabled in the [login message](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/773a62b6-ee89-4c02-9e5e-344882630aac). In `prepareLogin`, if you add `OptionFlags1: 0xA0` you should see them.

There's another point I'd like to clarify: what should we do when we receive a non-fatal error? (severity 11 to 16) Returning it along with a non-nil `sql.Rows`? Not returning...

> I think database changes etc are communicated as errors too, like error 5701 for changed database context. Maybe that's why the driver currently turns them off. No, these are...

I wouldn't mind as long as I can still define it per command. This is important to me, as I want to develop a service that forwards these messages to...

I can't have a look at the code now, as I'm on vacation. But, the more I think about it, the more I believe the callback function might be good...

Hello. Yes, it should do the same as for `typeBigChar`. ```go r, err := db.Query("SELECT CAST('1' AS CHAR(10)), CAST(0x02 AS BINARY(20)), CAST(0x03 AS VARBINARY(30))") if err != nil { log.Fatalln(err)...