From: Eric Bollengier Date: Fri, 9 Oct 2009 09:17:30 +0000 (+0200) Subject: remove old db_get_int_handler() X-Git-Tag: Release-5.0.0~288 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a6630f59187ce431304fd0c8b6457f18360d7c9d;p=bacula%2Fbacula remove old db_get_int_handler() --- diff --git a/bacula/src/cats/sql_get.c b/bacula/src/cats/sql_get.c index 4c553025bf..d065ba09f9 100644 --- a/bacula/src/cats/sql_get.c +++ b/bacula/src/cats/sql_get.c @@ -1259,19 +1259,4 @@ bail_out: return false; } -/* - * Use to build a string of int list from a query. "10,20,30" - */ -int db_get_int_handler(void *ctx, int num_fields, char **row) -{ - POOLMEM *ret = (POOLMEM *)ctx; - if (num_fields == 1) { - if (ret[0]) { - pm_strcat(ret, ","); - } - pm_strcat(ret, row[0]); - } - return 0; -} - #endif /* HAVE_SQLITE3 || HAVE_MYSQL || HAVE_SQLITE || HAVE_POSTGRESQL || HAVE_DBI */