Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005
    Posts
    26

    SQLite Complie error

    I am getting an error (30001) right after SQLite.Compile...
    For the life of me, I can't seem to figure it out. Does anyone have any suggestions?

    Code:
    function getStoredCRC(f)
    	Application.SetLastError(0)
    	SQLite.Compile(db, "SELECT * FROM CRCTable WHERE Filename = " .. f .. ";")
    	Debug.Print(Application.GetLastError())
    	SQLite.Step(db)
    
    	local crctbl = SQLite.GetRowDataAssoc(db)
    
    	SQLite.Finalize(db)
    	return crctbl.CRC
    
    end
    Thanks in advance!
    Nathan

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Hi Nathan

    The problem is this line:
    Code:
    SQLite.Compile(db, "SELECT * FROM CRCTable WHERE Filename = " .. f .. ";")
    It should be:
    Code:
    SQLite.Compile(db, "SELECT * FROM CRCTable WHERE Filename = '" .. f .. "'")
    Dermot

    I am so out of here

Similar Threads

  1. SQlite Plugin error
    By Moiz Palaci in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 11-25-2005, 10:01 AM
  2. Sqlite error
    By Moiz Palaci in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 11-01-2005, 01:09 AM
  3. Help to get error in SQLite searching
    By dmla in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 04-07-2005, 08:20 AM
  4. ZipExtract "callback" error
    By Darwin in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 02-21-2005, 06:34 PM
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts