Skip to content

Commit

Permalink
Exposed the message constants
Browse files Browse the repository at this point in the history
  • Loading branch information
dparnell committed Oct 23, 2011
1 parent 9737b6e commit 102c2d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions FreeTDS/FreeTDS.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ const extern NSString* FREETDS_OS_CODE;
const extern NSString* FREETDS_DB_ERROR;
const extern NSString* FREETDS_DB_CODE;
const extern NSString* FREETDS_SEVERITY;
const extern NSString* FREETDS_MESSAGE;
const extern NSString* FREETDS_MESSAGE_NUMBER;
const extern NSString* FREETDS_MESSAGE_STATE;
const extern NSString* FREETDS_PROC_NAME;
const extern NSString* FREETDS_LINE;

@class FreeTDS;

Expand Down
2 changes: 1 addition & 1 deletion FreeTDS/FreeTDS.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static int msg_handler(DBPROCESS *dbproc, DBINT msgno, int msgstate, int severit
}
} else {
if (free_tds && free_tds->delegate) {
[free_tds->delegate handleMessage: info withSeverity: severity from: free_tds];
return [free_tds->delegate handleMessage: info withSeverity: severity from: free_tds];
}
}
return 0;
Expand Down

0 comments on commit 102c2d3

Please sign in to comment.