/** |
* Add main table in the sql statement T0 alias |
* |
* @param string $mainTable main table name |
* @return void |
**/ |
public function addMainTable($mainTable) |
{ |
$this->_mainTable = "$mainTable"; |
$this->_tableJoins = " `$mainTable` T0 "; |
}
This produces sql querys like:
"SELECT COUNT(*) FROM `help` T0 INNER JOIN `help_category` T1 ON T1.id = T0.category_id WHERE T0.category_id=''"
that do not work with postgresql. |
My errors are localized I am afraid. But the error is about the use of backtics.
Attached patch stopped the errors about this particular issue and I
think querys are ok with Mysql too.
> Best regards!
That was a fast response :)
<backticks.patch>
<backticks.patch>
Ok, you know your beast. :)
> for now , we dont have many users using PostgreSQL
>
> I would like to discuss the solution with you on skype. and soon we will fix
> it in next release
I'm afraid I am just a sysadmin trying to get running siremis[0] in
order to evaluate it. I don't think I can help you, I have no
experience in your framework at all.
Hi Augs , why dont we made a support patch on our source code level,
we can put it in next release
before generate sql , lets do a condition test. if Bizsystem::getDBConnection() type is PostgreSQL then without the [`]
here i dont have a test environment, if u can fix it would be great!
Hi,
I'm afraid nor I can test or commit this. I'm using an older version of openbiz. AFAIK this works on my system but I only used postgresql.