Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixes to the problem of NULL equality in the selector fields.#26

Merged
seamusabshere merged 4 commits intoseamusabshere:masterfrom
pnomolos:null_equality
Nov 6, 2013
Merged

Fixes to the problem of NULL equality in the selector fields.#26
seamusabshere merged 4 commits intoseamusabshere:masterfrom
pnomolos:null_equality

Conversation

@pnomolos
Copy link
Collaborator

@pnomolos pnomolos commented Nov 6, 2013

Fixes for issue #25. Doesn't fix Sqlite (yet).

One note - the "uses nil selectors (another way of checking)" spec is now failing in Postgres - the Date value being returned is in a different format than expected. I'm not sure if this is a problem or not :)

@pnomolos
Copy link
Collaborator Author

pnomolos commented Nov 6, 2013

So it'll add some extra work, but if we pull the table definition for the table being inserted to, it's possible to use rowid in conjunction with something like this StackOverflow comment to be able to update records. The only place where this wouldn't work is in the case of a table with no primary/unique key and a named column that overrides the internal rowid column (which seems like a fairly edge case to me).

@seamusabshere
Copy link
Owner

have you run the whole test suite? do the performance tests still pass? :)

@seamusabshere
Copy link
Owner

(also: please add this to the CHANGELOG and add yourself as an author in the README)

@pnomolos
Copy link
Collaborator Author

pnomolos commented Nov 6, 2013

Shall I bump the version number as well, to 2.0.2?

@pnomolos
Copy link
Collaborator Author

pnomolos commented Nov 6, 2013

Or I guess maybe 2.1.0 since this technically introduces some backwards compatibility?

@seamusabshere
Copy link
Owner

i would say a bump patch - this is a "bugfix," albeit a VERY important one

agree?

@pnomolos
Copy link
Collaborator Author

pnomolos commented Nov 6, 2013

I guess so, the cases where someone would be depending on the previous (incorrect) behaviour don't make any sense to me :)

@seamusabshere
Copy link
Owner

agree - 2.0.2 - plz make sure you've got the fix for #24 in there too

@pnomolos
Copy link
Collaborator Author

pnomolos commented Nov 6, 2013

BTW, the one performance spec that now appears to fail is the "Upsert can be speeded up with upserting compared to activerecord-import is faster than faking upserts with activerecord-import" spec, but only on MySQL.

CHANGELOG Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge this up please

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge this up?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be like

2.02
bug fixes

  • yourfix
  • the fix for 24

seamusabshere added a commit that referenced this pull request Nov 6, 2013
Fixes to the problem of NULL equality in the selector fields.
@seamusabshere seamusabshere merged commit b58b5ad into seamusabshere:master Nov 6, 2013
@pnomolos pnomolos deleted the null_equality branch November 6, 2013 19:20
@seamusabshere
Copy link
Owner

released as 2.0.2 - thank you!

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

Successfully merging this pull request may close these issues.

2 participants