MetaTrader 5 build 2360: Extension of SQLite integration

What's new in MetaTrader 5

6 March 2020

  1. MQL5: SQLite database operation errors can now be analyzed using standard MQL5 tools. The following error codes have been added:

    • ERR_DATABASE_ERROR β€” generic error.
    • ERR_DATABASE_INTERNAL β€” SQLite internal logic error.
    • ERR_DATABASE_PERM β€” access denied.
    • ERR_DATABASE_BUSY β€” database file locked.
    • ERR_DATABASE_LOCKED β€” database table locked.
    • ERR_DATABASE_NOMEM β€” insufficient memory for completing operation.
    • ERR_DATABASE_READONLY β€” attempt to write to read-only database.
    • ERR_DATABASE_IOERR β€” disk I/O error.
    • ERR_DATABASE_CORRUPT β€” database disk image corrupted.
    • ERR_DATABASE_FULL β€” insertion failed because database is full.
    • ERR_DATABASE_CANTOPEN β€” unable to open the database file.
    • ERR_DATABASE_PROTOCOL β€” database lock protocol error.
    • ERR_DATABASE_SCHEMA β€” internal use only.
    • ERR_DATABASE_TOOBIG β€” string or BLOB exceeds size limit.
    • ERR_DATABASE_CONSTRAINT β€” abort due to constraint violation.
    • ERR_DATABASE_MISMATCH β€” data type mismatch.
    • ERR_DATABASE_MISUSE β€” library used incorrectly.
    • ERR_DATABASE_AUTH β€” authorization denied.
    • ERR_DATABASE_RANGE β€” bind parameter error, incorrect index.
    • ERR_DATABASE_NOTADB β€” file opened that is not database file.

  2. MQL5: Fixed operation of the DatabaseImport function which enables data import from a file into a database table.
  3. MetaEditor: Fixed output of strings longer than 32KB to logs.
  4. MetaEditor: Fixed occasional incorrect encoding in messages sent from the Python console (stdout, stderr) into the Errors section of the editor.
  5. Updated documentation.