* @param out Array of sql_log_entrys to fill.
* @param outlen Length of out array.
* @param query_ctx Query context to retrieve error for.
- * @param config rlm_sql config.
* @return number of errors written to the #sql_log_entry_t array.
*/
static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen,
* @param out Array of sql_log_entrys to fill.
* @param outlen Length of out array.
* @param query_ctx Query context to retrieve error for.
- * @param config rlm_sql config.
* @return number of errors written to the #sql_log_entry_t array.
*/
static size_t sql_error(UNUSED TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen,
* @param out Array of sql_log_entrys to fill.
* @param outlen Length of out array.
* @param query_ctx Query context to retrieve error for.
- * @param config rlm_sql config.
* @return number of errors written to the #sql_log_entry_t array.
*/
static size_t sql_error(UNUSED TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen,
* @param out Array of sql_log_entrys to fill.
* @param outlen Length of out array.
* @param conn MySQL connection the query was run on.
- * @param config rlm_sql config.
* @return
* - Number of errors written to the #sql_log_entry_t array.
* - -1 on failure.
* @param out Array of sql_log_entrys to fill.
* @param outlen Length of out array.
* @param query_ctx Query context to retrieve error for.
- * @param config rlm_sql config.
* @return number of errors written to the #sql_log_entry_t array.
*/
static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen,
* @param out Array of sql_log_entrys to fill.
* @param outlen Length of out array.
* @param query_ctx Query context to retrieve error for.
- * @param config rlm_sql config.
* @return number of errors written to the #sql_log_entry_t array.
*/
static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen,
* @param out Array of sql_log_entrys to fill.
* @param outlen Length of out array.
* @param query_ctx Query context to retrieve error for.
- * @param config rlm_sql config.
* @return number of errors written to the #sql_log_entry_t array.
*/
static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen,
* @param out Array of sql_log_entrys to fill.
* @param outlen Length of out array.
* @param query_ctx Query context to retrieve error for.
- * @param config rlm_sql config.
* @return number of errors written to the #sql_log_entry_t array.
*/
static size_t sql_error(UNUSED TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen,
* @param out Array of #sql_log_entry_t to fill.
* @param outlen Length of out array.
* @param query_ctx Query context to retrieve error for.
- * @param config rlm_sql config.
* @return number of errors written to the #sql_log_entry_t array.
*/
static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen,
* @param[out] out a pre-allocated array of log entries to fill. Need not be NULL terminated.
* @param[in] outlen Number of log entries available for populating. Do not write to index
* out[outlen] or higher.
- * @param[in] handle to retrieve errors from.
- * @param[in] config of the SQL instance.
+ * @param[in] query_ctx to retrieve errors from.
* @return
* 0 - If no error messages are available.
* >0 - Number of log entries
*/
-typedef size_t (*sql_error_t)(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen, fr_sql_query_t *handle);
+typedef size_t (*sql_error_t)(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen, fr_sql_query_t *query_ctx);
typedef struct {
rlm_sql_t const *sql;