struct Plugin *plugin = cls;
struct GNUNET_MYSQL_StatementHandle *stmt = plugin->select_messages;
int ret;
+
+ if (0 == fragment_limit)
+ fragment_limit = UINT64_MAX;
+
struct GNUNET_MY_QueryParam params_select[] = {
GNUNET_MY_query_param_auto_from_type (channel_key),
GNUNET_MY_query_param_uint64 (&first_message_id),
|| SQLITE_OK != sqlite3_bind_int64 (stmt, 4,
(0 != fragment_limit)
? fragment_limit
- : -1))
+ : INT64_MAX))
{
LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK,
"sqlite3_bind");