Zend Framework

Zend_Db_Adapter_Abstract::lastSequenceId() and nextSequenceId() return null, rather than throw an exception, when they are not supported

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: N/A N/A
  • Resolution: Unresolved
  • Affects Version/s: 1.0.2
  • Fix Version/s: Next Major Release
  • Component/s: Zend_Db
  • Labels:
    None

Description

Zend_Db_Adapter_Abstract::lastSequenceId() and nextSequenceId() return null, rather than throw an exception, when they are not supported. To me it seems logical to throw an exception when an unsupported operation is requested of a database adapter. If there are good reasons to return null or not to throw an exception, however, please consider this a non-issue.

Activity

Hide
Wil Sinclair added a comment -

Please categorize/fix as needed.

Show
Wil Sinclair added a comment - Please categorize/fix as needed.
Hide
Wil Sinclair added a comment -

This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.

Show
Wil Sinclair added a comment - This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.
Hide
Wil Sinclair added a comment -

Reassigning as Ralph is the maintainer of Zend_Db

Show
Wil Sinclair added a comment - Reassigning as Ralph is the maintainer of Zend_Db
Hide
Amjad Mohamed added a comment -

What if the user is currently using an Adapter that supports the operation but changes it later to an Adapter that doesn't support it.

Show
Amjad Mohamed added a comment - What if the user is currently using an Adapter that supports the operation but changes it later to an Adapter that doesn't support it.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:

Time Tracking

Estimated:
3h
Original Estimate - 3 hours
Remaining:
3h
Remaining Estimate - 3 hours
Logged:
Not Specified
Time Spent - Not Specified