NAME
DBD::Ingres - Ingres access interface for Perl5
SYNOPSIS
$dbh = DBI->connect($dbname, $user, $options, 'Ingres')
$sth = $dbh->prepare($statement)
$sth->execute
@row = $sth->fetchrow
$sth->finish
$dbh->commit
$dbh->rollback
$dbh->disconnect
and many more
DESCRIPTION
DBD::Ingres is an extension to Perl which allows access to Ingres databases. It is built on top of the standard DBI extension an implements the methods that DBI require.
This document describes the differences between the "generic" DBD and DBD::Ingres.
Not implemented
- Binding
-
Parameter binding is not implented is this version of DBD::Ingres. It is planned for a future release - but does not have high priority. Any takers?
As there is no binding, there is no need for reexecution of statements - not that anything in the code prevents it - to my knowledge :-)
- $h->state
-
SQL_STATE is not implemented yet. It is planned for the (not so) near future.
- OpenIngres new features
-
The new features of OpenIngres are not (yet) supported in DBD::Ingres.
This includes BLOBS, decimal datatype and spatial datatypes.
Support will be added when the need arises - if you need it you add it ;-)
Extensions/Changes
- $dbh->do
-
This is implemented as a call to 'EXECUTE IMMEDIATE'. (The generic way is through prepare, bind, execute). This will probably change when binds are added.
- $sth->{Statement}
-
Contains the text of the SQL-statement. Used mainly for debugging.
- $sth->{TYPE}
-
Returns an array of the "perl"-type of the return fields of a select statement.
The types are represented as:
- $sth->SqlLen
-
Returns an array containing the lengths of the fields in Ingres, eg. an int2 will return 2, a varchar(7) 7 and so on.
Note that money and date will have length returned as 0.
- $sth->SqlType
-
Returns an array containing the Ingres types of the fields. The types are given as documented in the Ingres SQL Reference Manual.
NOTES
I wonder if I have forgotten something? There is no authoritative DBI documentation (other than the code); it is difficult to document the differences from a non-existent document ;-}
SEE ALSO
The DBI documentation (at the end of DBI.pm).
AUTHORS
DBI/DBD was developed by Tim Bunce, <Tim.Bunce@ig.co.uk>, who also developed the DBD::Oracle that is the closest we have to a generic DBD implementation.
Henrik Tougaard, <ht@datani.dk> developed the DBD::Ingres extension.