Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 195794 | Differences between
and this patch

Collapse All | Expand All

(-)src/dird/newvol.c (-1 / +1 lines)
Lines 124-130 Link Here
124
   mr->VolumeName[0] = 0;
124
   mr->VolumeName[0] = 0;
125
   bstrncpy(name, pr->LabelFormat, sizeof(name));
125
   bstrncpy(name, pr->LabelFormat, sizeof(name));
126
   ctx.value = 0;
126
   ctx.value = 0;
127
   Mmsg(query, "SELECT MAX(MediaId) FROM Media,POOL WHERE Pool.PoolId=%s", 
127
   Mmsg(query, "SELECT MAX(MediaId) FROM Media,Pool WHERE Pool.PoolId=%s", 
128
        edit_int64(pr->PoolId, ed1));
128
        edit_int64(pr->PoolId, ed1));
129
   if (!db_sql_query(jcr->db, query.c_str(), db_int64_handler, (void *)&ctx)) {
129
   if (!db_sql_query(jcr->db, query.c_str(), db_int64_handler, (void *)&ctx)) {
130
      Jmsg(jcr, M_WARNING, 0, _("SQL failed, but ignored. ERR=%s\n"), db_strerror(jcr->db));
130
      Jmsg(jcr, M_WARNING, 0, _("SQL failed, but ignored. ERR=%s\n"), db_strerror(jcr->db));

Return to bug 195794