#define warn_length(col, size) ast_log(LOG_WARNING, "Column %s is not long enough to contain realtime data (needs %d)\n", col->name, size)
#define warn_type(col, type) ast_log(LOG_WARNING, "Column %s is of the incorrect type to contain realtime data\n", col->name)
#define warn_length(col, size) ast_log(LOG_WARNING, "Realtime table %s@%s: column '%s' is not long enough to contain realtime data (needs %d)\n", table, database, col->name, size)
#define warn_type(col, type) ast_log(LOG_WARNING, "Realtime table %s@%s: column '%s' is of the incorrect type (%d) to contain the required realtime data\n", table, database, col->name, col->type)
ast_log(LOG_WARNING,"Column '%s' may not be large enough for the required data length: %d\n",column->name,size);
res=-1;
}elseif(type!=RQ_INTEGER){
ast_log(LOG_WARNING,"Column '%s' is of the incorrect type: (need %s(%d) but saw %s)\n",column->name,type==RQ_CHAR?"char":"something else ",size,column->type);
}elseif((type==RQ_INTEGER8||type==RQ_UINTEGER8||
type==RQ_UINTEGER4)&&typesize==4){
ast_log(LOG_WARNING,"Column '%s' may not be large enough for the required data length: %d\n",column->name,size);
ast_log(LOG_WARNING,"Column '%s' is of the incorrect type: (need %s(%d) but saw %s)\n",column->name,type==RQ_CHAR?"char":type==RQ_DATETIME?"datetime":type==RQ_DATE?"date":type==RQ_FLOAT?"float":"a rather stiff drink ",size,column->type);