<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>I just want to give a heads-up that control panel 6.2 does not work with postgres when using user management. It gives some MDB2 errors.
<br>
</p>
<p>It is related to changed behaviour of select syntax between 6.1 and 6.2.</p>
<p><br>
</p>
<p>In 6.2 you will find this select syntax in user_management.main.php<br>
</p>
<p><span>Line 185<br>
</span></p>
<p><span>$sql_command="from ".$table." s ".$sql_search." order by s.id asc";</span></p>
<p>Line 193</p>
<p><span>$resultset = $link->queryAll("select count(*) ".$sql_command);</span></p>
<p><span><br>
</span></p>
<p><span>In 6.1 that still works with postgres for user management and opensips 2.2 select syntax is:</span></p>
<p><span></span>Line 157</p>
<p><span>$sql_command="select * from ".$table." s where (1=1) ".$sql_search." order by s.id asc";</span></p>
<p>Line 166 <br>
</p>
<p><span>$resultset = $link->queryAll($sql_command);</span></p>
<p><span><br>
</span></p>
<p><span>Not sure reason of why select syntax is changed in 6.2 but you should correct it so it works for postgres. Meanwhile a workaround is to use cp 6.1 if you use pgsql as db for opensips.</span></p>
<p><span><br>
</span></p>
<p><span>Regards,</span></p>
<p><span>Martin</span><br>
</p>
</div>
</body>
</html>