in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

empty trigger causes connection to fail

Last post 05-02-2009 9:01 AM by Robert Simpson. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-29-2009 1:12 AM

    • liron
    • Top 50 Contributor
    • Joined on 06-14-2008
    • Posts 29

    empty trigger causes connection to fail

    I'm using version 1.0.58.0 of the provider. When I'm trying to connect to a database that contains the following trigger - the connection fails: CREATE TRIGGER empty_trigger UPDATE OF name ON test1 BEGIN END Of course there is no reason for such trigger to be there in the first place but still - I'd expect the connection to succeed despite of this weird SQL construct. The error message is: The database disk image is malformed malformed database schema (empty_trigger) - near "END": syntax error Thanks in advance Liron
  • 04-29-2009 2:20 PM In reply to

    Re: empty trigger causes connection to fail

    Upgrade. I think that was fixed in the SQLite engine a while ago.

     

  • 05-01-2009 12:53 AM In reply to

    • liron
    • Top 50 Contributor
    • Joined on 06-14-2008
    • Posts 29

    Re: empty trigger causes connection to fail

    Hi Robert, I've tested it with the latest version (1.0.61.0) and it still fails .. If you can provide me with a hint where to look in the provider solution I'll try fix this myself :-) Thanks in advance Liron
  • 05-01-2009 6:50 AM In reply to

    Re: empty trigger causes connection to fail

    That's just it -- it's not a provider issue.  Try opening the database using the sqlite3.exe command-line and verify.

     

  • 05-01-2009 11:12 PM In reply to

    • liron
    • Top 50 Contributor
    • Joined on 06-14-2008
    • Posts 29

    Re: empty trigger causes connection to fail

    Hi Robert I've tried this and it works OK with the sqlite3.exe utility. BTW - it also works OK with many other non-.NET sqlite database managers (like SQLiteMaestro). Liron
  • 05-02-2009 9:01 AM In reply to

    Re: empty trigger causes connection to fail

    E-mail me the database:  robert at blackcastlesoft dot com

    I'll run tests on it here

     

Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems