Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-244

custom updates with prepared statements

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-beta1
    • Fix Version/s: 4.0
    • Component/s: None
    • Labels:
      None

      Description

      a) At the moment, it is possible to execute an arbitrary statement.
      However, it is not possible to execute an arbitrary Prepared statement.
      This should be made possible
      b) it should be possible to execute simple cases like UPDATE mytable SET c = c + :x via the API without having to create custom SQL

        Activity

        Hide
        tfischer Thomas Fox added a comment -

        b) Now one can fire prepared statements via the executeStatement methods.
        a) As for this bit, one still would have to write custom SQL snippets. Whether one uses custom SQL snippets or a whole custom SQL expression doesn't make much difference in my opinion, so not adding another way to create the update SQL

        Show
        tfischer Thomas Fox added a comment - b) Now one can fire prepared statements via the executeStatement methods. a) As for this bit, one still would have to write custom SQL snippets. Whether one uses custom SQL snippets or a whole custom SQL expression doesn't make much difference in my opinion, so not adding another way to create the update SQL

          People

          • Assignee:
            tfischer Thomas Fox
            Reporter:
            tfischer Thomas Fox
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development