[dev] [cvs] commit: turba/lib Driver.php api.php turba/lib/Driver sql.php

Jan Schneider jan at horde.org
Mon Oct 29 17:53:15 UTC 2007


Zitat von Chuck Hagenbuch <chuck at horde.org>:

> Quoting Jan Schneider <jan at horde.org>:
>
>>> I was under the impression that not all RDBMS actually implemented the
>>> ANSI version of the substring() command.  In particular (at least some
>>> versions of) MS SQL implement it in the (string, from, to) kind of way.
>>
>> That sucks. Does that mean that not all RDMBS implement the ANSI
>> version, but all implement a non-standard version that works
>> everywhere the same? I wonder what standards are for.
>
> Can we leave it as standard and put in a switch on dbsyntax for ones
> that don't implement it? If the non-standard standard works with
> DATETIME fields, though, that's fine too.

It does. At least on MySQL. And with a DATE field, didn't test DATETIME.

>> You can always add more function arguments when necessary. There is no
>> advantage in passing a hash, it's a private function anyway.
>
> To a point... it is an internal function though so changing how args
> are passed is always possible if we end up with too many.

Sure.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list