Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQLResultsSet>>nextRow gives MNU #removeFirst #7

Open
rko281 opened this issue Mar 19, 2020 · 0 comments
Open

MySQLResultsSet>>nextRow gives MNU #removeFirst #7

rko281 opened this issue Mar 19, 2020 · 0 comments

Comments

@rko281
Copy link
Contributor

rko281 commented Mar 19, 2020

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.

estebanlm added a commit that referenced this issue Mar 26, 2020
Fixes and Tests for Issues #5, #6 and #7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant