CodeSmith Community
Your Code. Your Way. Faster!

Patch: MYSQL support... + SQLite issues

Latest post 05-22-2008 7:51 PM by blake05. 4 replies.
  • 05-07-2008 12:41 AM

    • Ben Ogle
    • Top 500 Contributor
    • Joined on 05-01-2008
    • Posts 13
    • Points 525

    Patch: MYSQL support... + SQLite issues

    This is a patch adding mysql support to nettiers. It uses the GenericClient with a MySQL specific xml file. The patch basically adds the xml file, adds support for unsigned types, and removes the hardcoded SQLite association with the GenericClient. All unit tests pass against the sql northwind db and our MySQL Db.

    I made a few GenericClient changes and because of this, SQLite support is probably broken. I was able to get a project generated against an SQLite DB, but it wouldn't build. I had the same problem as this post: http://community.codesmithtools.com/forums/p/6761/25990.aspx#25990 which leads me to believe it has nothing to do with what I changed. I would really like someone who knows SQLite and who has it working with nettiers to try this patch and, at the very least, let me know how it goes. I am assuming not very many folks are using SQLite as I had to update the SQL3SchemaProvider (from the downloads section) to use it with the newest codesmith version. Anyway, there are a couple of things I _know_ are broken in SQLite, such as <table>_Find query.

    If anyone has an SQLite db that is reasonably complex and works with nettiers, I would love to get my hands on it. Or if you are a nettiers/sqlite ninja, help getting it all up and running would be appreciated.

    Oh, and more MySQL testers with diverse schemas are welcome to try this out! :)

    Ben

    • Post Points: 65
  • 05-07-2008 8:18 AM In reply to

    • CitizenBane
    • Top 50 Contributor
    • Joined on 10-30-2007
    • Grand Rapids, MI
    • Posts 94
    • Points 1,740

    Re: Patch: MYSQL support... + SQLite issues

    Dude, you're freakin' sweet, man! Yes

    I'm outside ur box, shiftin' ur paradigm.
    • Post Points: 35
  • 05-08-2008 12:29 AM In reply to

    • Ben Ogle
    • Top 500 Contributor
    • Joined on 05-01-2008
    • Posts 13
    • Points 525

    Re: Patch: MYSQL support... + SQLite issues

    Well, I just hope it gets used (and integrated!). And I took your advice: all patches from here on out will be zips... 

    BTW, I almost forgot that codesmith uses a specific version of the mysql connector: v5.1.4. It turns out this is a difficult-to-find version (it was for me!). So here it is. Just dump the bin/MySQL.Data.dll into codesmith's bin dir and all should be peachy.

    Ben

    • Post Points: 35
  • 05-08-2008 8:49 AM In reply to

    • blake05
    • Top 25 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 217
    • Points 3,695

    Re: Patch: MYSQL support... + SQLite issues

     Ben,

    If you update CodeSmith to version 4.1.4, we fixed the issue where one had to use a specific version of mysql (e.g. v5.1.4).

    Blake Niemyjski CodeSmith Tools, LLC Support Specialist
    • Post Points: 5
  • 05-22-2008 7:51 PM In reply to

    • blake05
    • Top 25 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 217
    • Points 3,695

    Re: Patch: MYSQL support... + SQLite issues

     Hello,

    Thank you for your contribution, we have added this to our to-do list. You can check the status of this here

    Thanks

    -Blake

    Blake Niemyjski CodeSmith Tools, LLC Support Specialist
    • Post Points: 5
Page 1 of 1 (5 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems