SPOPS::DBI::Sybase -- Sybase-specific routines for the SPOPS::DBI
# In your configuration: 'myspops' => { 'isa' => [ qw/ SPOPS::DBI::Sybase SPOPS::DBI / ], # If you have an IDENTITY field, set syb_identity to true 'syb_identity' => 1, ... },
This just implements some Sybase-specific routines so we can abstract them out.
One of them optionally returns the IDENTITY value returned by the last insert. Of course, this only works if you have an IDENTITY field in your table:
CREATE TABLE my_table ( id numeric( 8, 0 ) IDENTITY not null, ... )
NOTE: You also need to let this module know if you are using this IDENTITY option by setting in your class configuration the key 'syb_identity' to a true value.
sql_quote
DBD::Sybase depends on the type of a field if you are quoting values to put into a statement, so we override the default 'sql_quote' from SPOPS::SQLInterface to ensure the type of the field is used in the DBI->quote call.
DBD::Sybase
SPOPS::SQLInterface
None known.
Nothing known.
SPOPS::Key::DBI::Identity
DBI
Copyright (c) 2001-2002 intes.net, inc.. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
See the SPOPS module for the full author list.
To install SPOPS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPOPS
CPAN shell
perl -MCPAN -e shell install SPOPS
For more information on module installation, please visit the detailed CPAN module installation guide.