[development] hook_install: pgsql: check version number

Keve kevex at pro.hu
Thu Mar 9 11:00:15 UTC 2006


Of course, i just did not mention it.

Thanks anyway.
Keve.

Adrian Rossouw wrote:

> 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
>
>
>
>
> <!-- Adverticum zone: 28057 (js) -->
> <script type="text/javascript">
>     // <![CDATA[
>         var ord=Math.round(Math.random()*100000000);
>         document.write('<sc'+'ript type="text/javascript" 
> src="http://ad.adverticum.net/js.prm?zona=28057&ord='+ord+'"><\/scr'+'ipt>'); 
>
>     // ]]>
> </script>
> <noscript><a 
> href="http://ad.adverticum.net/click.prm?zona=28057&nah=!ie" 
> target="_top" title="Hirdetés"><img border="0" 
> src="http://ad.adverticum.net/img.prm?zona=28057&nah=!ie" 
> alt="Kattintson a hirdetésre!" /></a></noscript>
>
>
>
>



More information about the development mailing list