Skip to content

Commit 4897b96

Browse files
committed
Merge pull request #134 from veracross/30-char-username
Allow Support for 31+ Character Usernames/Passwords
2 parents b9ac6ca + 406bf39 commit 4897b96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/tiny_tds/client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@ static VALUE rb_tinytds_connect(VALUE self, VALUE opts) {
264264
dbmsghandle(tinytds_msg_handler);
265265
GET_CLIENT_WRAPPER(self);
266266
cwrap->login = dblogin();
267+
if (!NIL_P(version))
268+
dbsetlversion(cwrap->login, NUM2INT(version));
267269
if (!NIL_P(user))
268270
dbsetluser(cwrap->login, StringValuePtr(user));
269271
if (!NIL_P(pass))
270272
dbsetlpwd(cwrap->login, StringValuePtr(pass));
271273
if (!NIL_P(app))
272274
dbsetlapp(cwrap->login, StringValuePtr(app));
273-
if (!NIL_P(version))
274-
dbsetlversion(cwrap->login, NUM2INT(version));
275275
if (!NIL_P(ltimeout))
276276
dbsetlogintime(NUM2INT(ltimeout));
277277
if (!NIL_P(timeout))

0 commit comments

Comments
 (0)