version 1.1.2.10, 2011/11/28 13:19:39
|
version 1.1.2.11, 2011/11/28 13:25:53
|
Line 354 mqtt_rtlm_read_topic(sl_config *cfg, sqlite3 *sql, con
|
Line 354 mqtt_rtlm_read_topic(sl_config *cfg, sqlite3 *sql, con
|
|
|
/* fill with data */ |
/* fill with data */ |
for (j = 0; j < rowz && sqlite3_step(stmt) == SQLITE_ROW; j++) { |
for (j = 0; j < rowz && sqlite3_step(stmt) == SQLITE_ROW; j++) { |
s[j].sub_ret = *sqlite3_column_text(stmt, 0); | s[j].sub_ret = (char) sqlite3_column_int(stmt, 0); |
s[j].sub_topic._base = strdup(sqlite3_column_text(stmt, 1)); |
s[j].sub_topic._base = strdup(sqlite3_column_text(stmt, 1)); |
s[j].sub_topic._size = strlen(s[j].sub_topic._base); |
s[j].sub_topic._size = strlen(s[j].sub_topic._base); |
s[j].sub_value._base = strdup(sqlite3_column_text(stmt, 2)); |
s[j].sub_value._base = strdup(sqlite3_column_text(stmt, 2)); |