Ticket #882 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

lastInsertId() for Doctrine_Sequence_Mssql returns decimal values

Reported by: zomg Owned by: zYne-
Priority: minor Milestone: 0.11.0
Component: Query/Hydration Version: 0.10.0
Severity: Keywords: mssql
Cc: Has Test:
Status: Has Patch:

Description (last modified by zomg) (diff)

lastInsertId() method in Doctrine_Sequence_Mssql returns decimal values instead of integers even if the primary key column is an integer.

F.ex. 1.0, 2.0, 3.0 and so on.

Attachments

Mssql.php.patch (336 bytes) - added by zomg 16 months ago.
Patch for Doctrine/Sequence/Mssql.php

Change History

Changed 16 months ago by zomg

  • description modified (diff)

Changed 16 months ago by zomg

Patch for Doctrine/Sequence/Mssql.php

Changed 16 months ago by zomg

The patching method was suggested by guilhermeblanco and romanb. Tested and working.

Changed 16 months ago by romanb

  • status changed from new to closed
  • resolution set to fixed

(In [4049]) fixed #882

Note: See TracTickets for help on using tickets.