SQLite錯誤碼

來源:互聯網
上載者:User

標籤:

#define SQLITE_OK 0 /* 成功 | Successful result */
/* 錯誤碼開始 */
#define SQLITE_ERROR                            1 /* SQL錯誤 或 遺失資料庫 | SQL error or missing database */


#define SQLITE_INTERNAL                        2 /* SQLite 內部邏輯錯誤 | Internal logic error in SQLite */


#define SQLITE_PERM                              3 /* 拒絕訪問 | Access permission denied */


#define SQLITE_ABORT                            4 /* 回呼函數請求取消操作 | Callback routine requested an abort */


#define SQLITE_BUSY                              5 /* 資料庫檔案被鎖定 | The database file is locked */


#define SQLITE_LOCKED                          6 /* 資料庫中的一個表被鎖定 | A table in the database is locked */


#define SQLITE_NOMEM                           7 /* 某次 malloc() 函數調用失敗 | A malloc() failed */


#define SQLITE_READONLY                       8 /* 嘗試寫入一個唯讀資料庫 | Attempt to write a readonly database */


#define SQLITE_INTERRUPT                      9 /* 操作被 sqlite3_interupt() 函數中斷 | Operation terminated by sqlite3_interrupt() */


#define SQLITE_IOERR                             10 /* 發生某些磁碟 I/O 錯誤 | Some kind of disk I/O error occurred */


#define SQLITE_CORRUPT                         11 /* 資料庫磁碟映像不正確 | The database disk image is malformed */


#define SQLITE_NOTFOUND                      12 /* sqlite3_file_control() 中出現未知運算元 | Unknown opcode in sqlite3_file_control() */


#define SQLITE_FULL                                13 /* 因為資料庫滿導致插入失敗 | Insertion failed because database is full */


#define SQLITE_CANTOPEN                       14 /* 無法開啟資料庫檔案 | Unable to open the database file */


#define SQLITE_PROTOCOL                       15 /* 資料庫鎖定協議錯誤 | Database lock protocol error */


#define SQLITE_EMPTY                             16 /* 資料庫為空白 | Database is empty */


#define SQLITE_SCHEMA                          17 /* 資料結構發生改變 | The database schema changed */


#define SQLITE_TOOBIG                           18 /* 字串或位元據超過大小限制 | String or BLOB exceeds size limit */


#define SQLITE_CONSTRAINT                   19 /* 由於約束違例而取消 | Abort due to constraint violation */


#define SQLITE_MISMATCH                       20 /* 資料類型不匹配 | Data type mismatch */


#define SQLITE_MISUSE                           21 /* 不正確的庫使用 | Library used incorrectly */


#define SQLITE_NOLFS                             22 /* 使用了作業系統不支援的功能 | Uses OS features not supported on host */


#define SQLITE_AUTH                               23 /* 授權失敗 | Authorization denied */


#define SQLITE_FORMAT                           24 /* 附加資料庫格式錯誤 | Auxiliary database format error */


#define SQLITE_RANGE                             25 /* 傳遞給sqlite3_bind()的第二個參數超出範圍 | 2nd parameter to sqlite3_bind out of range */


#define SQLITE_NOTADB                           26 /* 被開啟的檔案不是一個資料庫檔案 | File opened that is not a database file */


#define SQLITE_ROW                                100 /* sqlite3_step() 已經產生一個行結果 | sqlite3_step() has another row ready */


#define SQLITE_DONE                               101 /* sqlite3_step() 完成執行操作 | sqlite3_step() has finished executing */

 

SQLite錯誤碼

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.