2008-10-21, 02:51 PM
MyBB Version: 1.4.2
PHP Version: 4.3.10
DB Version: PostgreSQL 8.3.3
I often got an SQL error, which says that the function concat does not exist.
e.g. in:
/admin/index.php?module=user/users&action=search&results=1&conditions=a:1:{s:9"usergroup";s:1:"5";}
when I wanted to watch users that are not activated.
And in PostgreSQL there is no concat function. Since there is no way for varying parameters in PostgreSQL function (until now), I created my own concat functions. Since I'm new to MyBB, I don't know how many arguments could be used for concat by MyBB. I've got functions for a maximum of four parameters.
After I created theses functions everthing worked fine
Maybe one could create these functions when installing MyBB:
PHP Version: 4.3.10
DB Version: PostgreSQL 8.3.3
I often got an SQL error, which says that the function concat does not exist.
e.g. in:
/admin/index.php?module=user/users&action=search&results=1&conditions=a:1:{s:9"usergroup";s:1:"5";}
when I wanted to watch users that are not activated.
And in PostgreSQL there is no concat function. Since there is no way for varying parameters in PostgreSQL function (until now), I created my own concat functions. Since I'm new to MyBB, I don't know how many arguments could be used for concat by MyBB. I've got functions for a maximum of four parameters.
After I created theses functions everthing worked fine
Maybe one could create these functions when installing MyBB:
CREATE OR REPLACE FUNCTION concat(text, text) RETURNS text AS $$
SELECT $1 || $2;
$$ LANGUAGE 'sql';
CREATE OR REPLACE FUNCTION concat(text, text, text) RETURNS text AS $$
SELECT $1 || $2 || $3;
$$ LANGUAGE 'sql';
CREATE OR REPLACE FUNCTION concat(text, text, text, text) RETURNS text AS $$
SELECT $1 || $2 || $3 || $4;
$$ LANGUAGE 'sql';