|
错误提示:
mod_sql_mysql.c: In function `_build_error':
mod_sql_mysql.c:333: warning: passing arg 4 of `mod_create_ret' discards qualifiers from pointer target type......
源代码
static modret_t *_build_error( cmd_rec *cmd, db_conn_t *conn )
{
char num[20] = {'\0'};
if (!conn)
return PR_ERR_SQL_BADCMD(cmd);
snprintf(num, 20, "%u", mysql_errno(conn->mysql) );
return ERROR_MSG(cmd, num, mysql_error(conn->mysql));
} |
|