Quote:
Originally Posted by Chaund
My class contains an array:
public $x = array("fooBarAttributeId" => 0, "fooBarId" => 0, "lastUpdate" => "now()", "createdDate" => "now()", "vemg" => array() );
This array() is called multiple times within the class.
Is the reason the database value can not be retrieved is because the field is in double quotes within the array ("fooBarId" => 0) ?
|
I have no idea what the array in PHP is doing to your SQL statement nor what "the array is called" is supposed to mean.
This is definitely not something that happens in SQL or Postgres
Just post the
real SQL statement that is being built by your application, e.g. by printing it out just before execution. (Which should always be the first step when debugging SQL problems that stem from a programming or scripting language)
If the column is indeed quoted using double quotes in the resulting statement, then it is case-sensitive.
But if this would be the case you would get some kind of error message instead of an empty result.
You do catch any errors do you?