mssqlex icon indicating copy to clipboard operation
mssqlex copied to clipboard

Update to Ecto 3

Open whossname opened this issue 5 years ago • 15 comments

Description

An early beta version of mssqlex for the mssql_ecto migration to Ecto 3.

Motivation and Context

The result of my efforts to try and update mssql_ecto to Ecto 3

How Has This Been Tested?

Updated the unit tests to use db_connection 2.0 and modified them until they passed. Additionally the integration testing described in this pull request to mssql_ecto.

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [x] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [x] My code follows the code style of this project.
  • [x] My change requires a change to the documentation.
  • [x] I have updated the documentation accordingly.
  • [ ] I have added tests to cover my changes.
  • [x] All new and existing tests passed.

whossname avatar Aug 04 '19 07:08 whossname

I will at least get the unit tests working for this one before we close this pull request. The failing tests are due to a change in how NaiveDateTime is handled in a recent commit. A job for next weekend.

whossname avatar Aug 04 '19 07:08 whossname

Ah, it's types in general, not just NaiveDateTime. Anyway, next weekend's problem.

whossname avatar Aug 04 '19 07:08 whossname

Hi, it's failing when joining multiple tables and using column and table aliases. @whossname, hope you can fix it !

matreyes avatar Sep 13 '19 15:09 matreyes

Haha, yeh I was actually working on this today. Hopefully my fix works

On Fri, Sep 13, 2019, 11:45 PM Matías Reyes [email protected] wrote:

Hi, it's failing when joining multiple tables and using column and table aliases. @whossname https://github.com/whossname, hope you can fix it !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/findmypast-oss/mssqlex/pull/24?email_source=notifications&email_token=ABXWLMKXAK5SSS33MNE3P2TQJOYQDA5CNFSM4IJEURLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6VNJ2I#issuecomment-531289321, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXWLMOKBGLE7HPIV2EOGQTQJOYQDANCNFSM4IJEURLA .

whossname avatar Sep 13 '19 16:09 whossname

@matreyes the code from two commits ago should address that. It might fail if columns from different tables have the same name.

We are hoping to have a beta available soon. What is your time frame for needing this?

whossname avatar Sep 13 '19 16:09 whossname

@matreyes I just added this test for the situation you are describing, and in my branch at least it is working fine. Could you please elaborate on what the issue is and if possible suggest a better test?

whossname avatar Sep 14 '19 05:09 whossname

@whossname It works great now, thanks for the fast response!

matreyes avatar Sep 16 '19 14:09 matreyes

@jbachhardie this is ready for review. I think it should be basically ready to publish.

whossname avatar Sep 21 '19 01:09 whossname

Thank you for all your hard work and apologies for not getting to this yet I'll book out some time to review/publish it next week.

jbachhardie avatar Sep 28 '19 10:09 jbachhardie

I've been playing around a bit and it seems like the "No SQL-driver information available." triggers when you try to delete data and htere is nothing to delete. This may not be the only case where this error is triggered, but I think it is a bit of a clue as to why it is happening.

whossname avatar Oct 05 '19 03:10 whossname

@whossname @jbachhardie Hey! Do you need some help? I have some time this month and it will be great to finish this PR and push it to hex :)

nikneroz avatar Jun 24 '20 15:06 nikneroz

I would suggest that the way forward is to depreciate this repository in favour of TDS

https://github.com/livehelpnow/tds

whossname avatar Jun 24 '20 15:06 whossname

@nikneroz this is way harder than it looks unless you have a deep understanding of both Ecto and Transact SQL. I wasn't up to the task needed way more time and effort than I had available. That TDS repo should work fine though.

whossname avatar Jun 24 '20 15:06 whossname

I would suggest that the way forward is to depreciate this repository in favour of TDS

https://github.com/livehelpnow/tds

Ok, thank you!

nikneroz avatar Jun 25 '20 10:06 nikneroz

@nikneroz this is way harder than it looks unless you have a deep understanding of both Ecto and Transact SQL. I wasn't up to the task needed way more time and effort than I had available. That TDS repo should work fine though.

I'll check the current state and will try to figure out what do we have at this moment.

nikneroz avatar Jun 25 '20 10:06 nikneroz