Skip to content

MySQLResultsSet>>nextRow gives MNU #removeFirst #7

Open
@rko281

Description

@rko281

Sending nextRow to a MySQLResultsSet gives a MNU error on the send of removeFirst due to the result of MySQLCommandQuery>>readRowData being an Array. Test case (where c is a connected MySQLDriver):

c query: 'drop table if exists rows_test'.
c query: 'create table rows_test (i integer)'.
r := c prepare: 'insert into rows_test(i) values(?)'.
s := (MySQLDriverStatement onConnection: c) stmtId: r prepareOkay stmtHandlerId; cursoredFetch: false; yourself.
1 to: 5 do: [ :i | s addBinding: i; execute].
results := c query: 'select * from rows_test'.
results nextRow "ERROR: Instance of Array did not understand #removeFirst"

Could be fixed by modifying MySQLCommandQuery>>readRowData to return an OrderedCollection, or having nextRow stream over the results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions