static int update_mysql(const char *database, const char *tablename, const char *keyfield, const char *lookup, const struct ast_variable *rt_fields)
{
struct mysql_conn *dbh;
- my_ulonglong numrows;
+ uint64_t numrows;
const struct ast_variable *field = rt_fields;
struct ast_str *sql = ast_str_thread_get(&sql_buf, 100), *buf = ast_str_thread_get(&scratch_buf, 100);
struct tables *table;
release_table(table);
release_database(dbh);
- ast_debug(1, "MySQL RealTime: Updated %llu rows on table: %s\n", numrows, tablename);
+ ast_debug(1, "MySQL RealTime: Updated %" PRIu64 " rows on table: %s\n", numrows, tablename);
/* From http://dev.mysql.com/doc/mysql/en/mysql-affected-rows.html
* An integer greater than zero indicates the number of rows affected
static int update2_mysql(const char *database, const char *tablename, const struct ast_variable *lookup_fields, const struct ast_variable *update_fields)
{
struct mysql_conn *dbh;
- my_ulonglong numrows;
+ uint64_t numrows;
int first;
const struct ast_variable *field;
struct ast_str *sql = ast_str_thread_get(&sql_buf, 100), *buf = ast_str_thread_get(&scratch_buf, 100);
numrows = mysql_affected_rows(&dbh->handle);
release_database(dbh);
- ast_debug(1, "MySQL RealTime: Updated %llu rows on table: %s\n", numrows, tablename);
+ ast_debug(1, "MySQL RealTime: Updated %" PRIu64 " rows on table: %s\n", numrows, tablename);
/* From http://dev.mysql.com/doc/mysql/en/mysql-affected-rows.html
* An integer greater than zero indicates the number of rows affected
static int destroy_mysql(const char *database, const char *table, const char *keyfield, const char *lookup, const struct ast_variable *rt_fields)
{
struct mysql_conn *dbh;
- my_ulonglong numrows;
+ uint64_t numrows;
struct ast_str *sql = ast_str_thread_get(&sql_buf, 16);
struct ast_str *buf = ast_str_thread_get(&scratch_buf, 16);
const struct ast_variable *field;
numrows = mysql_affected_rows(&dbh->handle);
release_database(dbh);
- ast_debug(1, "MySQL RealTime: Deleted %llu rows on table: %s\n", numrows, table);
+ ast_debug(1, "MySQL RealTime: Deleted %" PRIu64 " rows on table: %s\n", numrows, table);
/* From http://dev.mysql.com/doc/mysql/en/mysql-affected-rows.html
* An integer greater than zero indicates the number of rows affected
struct mysql_conn *dbh;
MYSQL_RES *result;
MYSQL_ROW row;
- my_ulonglong num_rows;
+ uint64_t num_rows;
struct ast_variable *new_v;
struct ast_category *cur_cat = NULL;
struct ast_str *sql = ast_str_thread_get(&sql_buf, 200);
if ((result = mysql_store_result(&dbh->handle))) {
num_rows = mysql_num_rows(result);
- ast_debug(1, "MySQL RealTime: Found %llu rows.\n", num_rows);
+ ast_debug(1, "MySQL RealTime: Found %" PRIu64 " rows.\n", num_rows);
/* There might exist a better way to access the column names other than counting,
* but I believe that would require another loop that we don't need. */