Skip to content

Commit

Permalink
Treat MySQL JSON datatype as STRING
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpaiu committed Sep 24, 2018
1 parent 971af90 commit e6c2e45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/db_mysql/res.c
Expand Up @@ -112,6 +112,9 @@ int db_mysql_get_columns(const db_con_t* _h, db_res_t* _r)

case MYSQL_TYPE_STRING:
case MYSQL_TYPE_VAR_STRING:
#if MYSQL_VERSION_ID > 50700
case MYSQL_TYPE_JSON:
#endif
LM_DBG("use DB_STRING result type\n");
RES_TYPES(_r)[col] = DB_STRING;
break;
Expand Down

0 comments on commit e6c2e45

Please sign in to comment.