I have a thread already going on this topic in the MySQL forum but I am hoping someone here might know the answer thread436-639237
Original Question:
Can anybody tell me why this query only returns null values for the field "test" ?
SELECT CONCAT( 'a', 'b', 'c') AS test, nid FROM someTable
test | nid
NULL | 1
NULL | 2
NULL | 3
NULL | 4
NULL | 5
Whats odd is that on our test server it correctly returns abc but on the live server i returns NULL.
Obviously I'm not intending to CONCAT( 'a', 'b', 'c') but I I kept simplifing it to figure which field was causing it until well I was left with no fields and three static strings.
Is there some setting on the Apache server or in MySQL that would cause this?
-Pete
Do you get a little guilty pleasure when a celebrity has a bad day?
Well then The Dead Pool is for you!
Original Question:
Can anybody tell me why this query only returns null values for the field "test" ?
SELECT CONCAT( 'a', 'b', 'c') AS test, nid FROM someTable
test | nid
NULL | 1
NULL | 2
NULL | 3
NULL | 4
NULL | 5
Whats odd is that on our test server it correctly returns abc but on the live server i returns NULL.
Obviously I'm not intending to CONCAT( 'a', 'b', 'c') but I I kept simplifing it to figure which field was causing it until well I was left with no fields and three static strings.
Is there some setting on the Apache server or in MySQL that would cause this?
-Pete
Do you get a little guilty pleasure when a celebrity has a bad day?
Well then The Dead Pool is for you!