[development] hook_install: pgsql: check version number

Adrian Rossouw adrian at bryght.com
Mon Mar 6 11:19:41 UTC 2006


also do an

if $GLOBALS['db_type'] == 'pgsql' {

}
On 06 Mar 2006, at 12:23 PM, Keve wrote:

> Hi,
>
> I am not very familiar with Postgresql.
> I wrote taxonomy_access.install file, but for POSTGRESQL priot to  
> 8.0, I need to make a BIT_OR aggregate function.
> Do you think this will work OK for pg?
>
>      if (version_compare(pg_version(), '8.0', '<')) {
>           // PRIOR TO POSTGRESQL 8.0: making a BIT_OR aggregate  
> function
>      }
>
> Many thanks,
> Keve.
>

--
Adrian Rossouw
Drupal developer and Bryght Guy
http://drupal.org | http://bryght.com




More information about the development mailing list