You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Amilcar Batista <ab...@e-steel.com> on 2001/02/14 23:40:52 UTC

Database Driver Specificity

Why are there some code written specifically for some database drivers such
as mysql ?
The database connection shouldn't be generic ?

Amilcar

Re: Database Driver Specificity

Posted by Martin Stricker <sh...@gmx.de>.
Amilcar Batista wrote:
> 
> Why are there some code written specifically for some database drivers
> such as mysql ?
> The database connection shouldn't be generic ?

It shouldn't, but it has to because the databases are different. They
use different implementations of SQL and so on... So you have to be
*very* careful if you want to write an application which is really
database independent.

Best regards,
Martin Stricker

SV: Database Driver Specificity

Posted by Pål Wester <pa...@florence.never.no>.
How can you say that the code is specifically for mysql??

If the code uses cocoon, and then you use esql taglib, it is
very simple to change it to another database by changing your
settings in cocoon.properties (pool) or you have to change
the line where you specify the jdbcdriver.

The actual code will be the same, wouldn't it??

mvh:
Pål Wester, programmerer
never.no as, stortingsgt 30, 0161 Oslo
tlf: 22 01 66 20, fax: 22 01 66 21
direkte: 22 01 66 34, 906 900 62
http://never.no - icq:103476059
~ hvis du ikke klarer det på sørste forsøk vil jeg ikke anbefale hangliding
~

> -----Opprinnelig melding-----
> Fra: Amilcar Batista [mailto:abatista@e-steel.com]
> Sendt: 14. februar 2001 23:41
> Til: 'cocoon-users@xml.apache.org'
> Emne: Database Driver Specificity
>
>
> Why are there some code written specifically for some database
> drivers such
> as mysql ?
> The database connection shouldn't be generic ?
>
> Amilcar
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>