Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15745

allow ezdb::query() to return affected rows

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.2.0
    • Database related
    • None

    Description

      It is often nice to have the number of rows affected by update/delete statements.

      php supports it on both mysql, postgres and oracle.

      proposal: change from
      <coed>function query( $sql, $server = false )</code>
      to

      function query( $sql, $server = false, $params = array() )

      in $params we could add the token RETURN_AFFECTED_ROWS, and it would change the type of the return value...

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: