spacer.png, 0 kB
  May 23, 2013, 10:14:04

 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Could not execute SQL query "UPDATE queueinfo SET "ETA"...  (Read 627 times)
senax

Posts: 3


View Profile
« on: January 07, 2012, 23:56:57 »

Hi,

I've installed a newly downloaded urd and have some problems updating newsgroups. This is a new install and I let it create the tables automatically.

urdd: WARNING Database problem: (1690) mysqli error: [1690: BIGINT UNSIGNED value is out of range in '(-(243) + "urddb"."queueinfo"."ETA")'] in EXECUTE("UPDATE queueinfo SET "ETA"=((-243 + "ETA") / 2), "progress"='100', "comment"='37 articles/s - total 1000 articles', "lastupdate"='1325973151' WHERE "ID"='451'")

 urdd: ERROR Error while updating alt.binaries.hdtv.x264: Could not execute SQL query "UPDATE queueinfo SET "ETA"=((-243 + "ETA") / 2), "progress"='100', "comment"='37 articles/s - total 1000 articles', "lastupdate"='1325973151' WHERE "ID"='451'" mysqli error: [1690: BIGINT UNSIGNED value is out of range in '(-(243) + "urddb"."queueinfo"."ETA")'] in EXECUTE("UPDATE queueinfo SET "ETA"=((-243 + "ETA") / 2), "progress"='100', "comment"='37 articles/s - total 1000 articles', "lastupdate"='1325973151' WHERE "ID"='451'")


It seems a bit odd to add an integer to a string? ( -243 + "ETA")?

Ideas on how to fix this?

Thanks!

Senax
Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #1 on: January 08, 2012, 00:08:15 »

It's not so strange as "ETA" refers to a column, and is not a string actually. Anyway, odd that this happens. A quick fix may be to edit the file functions/functions.php (under /usr/share/urd/ if using the .deb file) and at line 445  in function store_ETA() you see a line like 
Code:
$eta = floor($eta);
After that line add a line like:
Code:
$eta = max(0, $eta);

Thanx for reporting this tho.
Logged
senax

Posts: 3


View Profile
« Reply #2 on: January 08, 2012, 00:25:47 »

Thanks!

That seems to have done the trick =)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Amigri by Fakdordes
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB