Skip to content

Commit

Permalink
dblib: handle database not having datetime2 type in t0012 test
Browse files Browse the repository at this point in the history
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Nov 22, 2015
1 parent ba54c92 commit 49668d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dblib/unittests/t0012.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ static void set_failed(int line)
#define datensecond nanosecond
#endif

static int
ignore_msg_handler(DBPROCESS * dbproc, DBINT msgno, int state, int severity, char *text, char *server, char *proc, int line)
{
return 0;
}

int
main(int argc, char *argv[])
{
Expand Down Expand Up @@ -122,6 +128,8 @@ main(int argc, char *argv[])
set_failed();

#ifdef SYBMSDATETIME2
dbmsghandle(ignore_msg_handler);

/* select */
sql_cmd(dbproc);
dbsqlexec(dbproc);
Expand Down

0 comments on commit 49668d2

Please sign in to comment.