-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting DB for DbUse? #54
Comments
The C.dbuse() call inside conn.DbUse() is to the FreeTDS shared library -
the "C." denotes a call to an imported C shared library, FreeTDS in this
case.
I have no experience of the gofreetds DbUse() or FreeTDS dbuse() function,
I suggest to start by looking through the FreeTDS documentation; the
compatibility of the function by FreeTDS is also likely to be Database
dependant (SQL Server, Sybase, etc).
…On Sat, Feb 11, 2017 at 10:10 PM, andyedison ***@***.***> wrote:
Hello,
I'm a little confused about the usage of DbUse()
<https://github.com/minus5/gofreetds/blob/master/conn.go#L249>. I was
imagining it accepting a string that then attempts to change the connection
to the database passed in. But it seems to be checking an un-exported
variable. Am I missing something?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#54>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL_W3QUWSjeVPxmEL8ywqfLGZ8PU_QI9ks5rbgeMgaJpZM4L-Q_Y>
.
--
Mark Songhurst
[email protected]
|
Good point andyedison. Before integrating this pull request DbUse was used during connecting to switch into the database specified in the connection string. After that it is not used any more. It is some kind of rudiment. |
I have a use case that would be great to pass a database name in as a string and switch to that database. I'd volunteer to make the change. |
Hello,
I'm a little confused about the usage of DbUse(). I was imagining it accepting a string that then attempts to change the connection to the database passed in. But it seems to be checking an un-exported variable. Am I missing something?
Thanks.
The text was updated successfully, but these errors were encountered: