Skip to content

Commit

Permalink
Merge pull request rails-sqlserver#30 from darrint/master
Browse files Browse the repository at this point in the history
Fix for Sybase
  • Loading branch information
metaskills committed Jul 12, 2011
2 parents 4924425 + 532592e commit 0bd4130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/tiny_tds/client.c
Expand Up @@ -96,7 +96,7 @@ int tinytds_err_handler(DBPROCESS *dbproc, int severity, int dberr, int oserr, c

int tinytds_msg_handler(DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity, char *msgtext, char *srvname, char *procname, int line) {
static char *source = "message";
if (severity)
if (severity > 10)
rb_tinytds_raise_error(dbproc, 1, msgtext, source, severity, msgno, msgstate);
return 0;
}
Expand Down

0 comments on commit 0bd4130

Please sign in to comment.