I fully tested an app on dev and it works fine, I upload it on live, go to compile, run, and it craps out. Using mysql++ which is very sensible to crashes. Even the sillyest sql error will cause a crash.
For some reason this whole query fails, I really can't see what's wrong with it:
"SELECT stresponse,max(stonline) as maxonline, max(stavgresponse) as maxresponse FROM stats WHERE stshardid='" + shardidstr + "' ORDER BY stdate DESC LIMIT " + BitStream::Int2Str(MAXROWS) + ";")
error:
[Apr-09-2009 10:53:08pm] Graph update get max data query error
Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
It's saying I need to use group, but wtf? since when? It works on dev why not on live...
I am running a slightly different version of SQL on live, but it wont let me update.
On live I have 5.0.45 but on dev I have 5.0.77. It wont let me update it on live for some reason, it says no package found when I go yum update mysql-server.
For some reason this whole query fails, I really can't see what's wrong with it:
"SELECT stresponse,max(stonline) as maxonline, max(stavgresponse) as maxresponse FROM stats WHERE stshardid='" + shardidstr + "' ORDER BY stdate DESC LIMIT " + BitStream::Int2Str(MAXROWS) + ";")
error:
[Apr-09-2009 10:53:08pm] Graph update get max data query error
Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
It's saying I need to use group, but wtf? since when? It works on dev why not on live...
I am running a slightly different version of SQL on live, but it wont let me update.
On live I have 5.0.45 but on dev I have 5.0.77. It wont let me update it on live for some reason, it says no package found when I go yum update mysql-server.
