[Dbix-class] Fwd: Sybase identity column value not being
retrieved during create()
Peter Rabbitson
rabbit+dbic at rabbit.us
Wed Jan 9 19:27:46 GMT 2013
On Wed, Jan 09, 2013 at 01:50:09PM -0500, Phillip Moore wrote:
> OK, I have verified that master passes the entire test suite with and
> without defining DBICTEST_SYBASE_(DSN|USER|PASS). The only
> difference is that I get a couple of warnings:
This is a problem. It means that our test somehow bypasses one of the
codepaths. I will have to read more in depth a bit later to see why
is this happening.
In the meantime - let me know if this solves your problem:
diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm b/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm
index 346dcd9..a41807e 100644
--- a/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm
+++ b/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm
@@ -277,7 +277,7 @@ sub _prep_for_execute {
my ($sql, $bind) = $self->next::method (@_);
if (my $identity_col = $self->_perform_autoinc_retrieval) {
- $sql .= "\n" . $self->_fetch_identity_sql($ident, $identity_col)
+ $sql .= ";\n" . $self->_fetch_identity_sql($ident, $identity_col)
}
return ($sql, $bind);
More information about the DBIx-Class
mailing list