We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9ac6ca + 406bf39 commit 4897b96Copy full SHA for 4897b96
ext/tiny_tds/client.c
@@ -264,14 +264,14 @@ static VALUE rb_tinytds_connect(VALUE self, VALUE opts) {
264
dbmsghandle(tinytds_msg_handler);
265
GET_CLIENT_WRAPPER(self);
266
cwrap->login = dblogin();
267
+ if (!NIL_P(version))
268
+ dbsetlversion(cwrap->login, NUM2INT(version));
269
if (!NIL_P(user))
270
dbsetluser(cwrap->login, StringValuePtr(user));
271
if (!NIL_P(pass))
272
dbsetlpwd(cwrap->login, StringValuePtr(pass));
273
if (!NIL_P(app))
274
dbsetlapp(cwrap->login, StringValuePtr(app));
- if (!NIL_P(version))
- dbsetlversion(cwrap->login, NUM2INT(version));
275
if (!NIL_P(ltimeout))
276
dbsetlogintime(NUM2INT(ltimeout));
277
if (!NIL_P(timeout))
0 commit comments