Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | 1.0.25.0 |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
c0022ffcbdd2b9f397961d37d3f65f3a |
User & Date: | rmsimpson 2006-01-31 19:11:50.000 |
Context
2006-02-02
| ||
22:44 | Fix rekey routine to skip the reserved locking page on databases over 1gb check-in: acedfb1e11 user: rmsimpson tags: sourceforge | |
2006-01-31
| ||
19:11 | 1.0.25.0 check-in: c0022ffcbd user: rmsimpson tags: sourceforge | |
05:29 | no message check-in: bc0a931347 user: rmsimpson tags: sourceforge | |
Changes
Deleted Doc/SQLite.NET.Internal.chm.
cannot compute difference between binary files
Deleted Doc/SQLite.NET.Internal.ndoc.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Changes to Doc/SQLite.NET.chm.
cannot compute difference between binary files
Changes to Doc/SQLite.NET.ndoc.
1 2 | <project SchemaVersion="1.3"> <assemblies> | | < < < < | < < < < < > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <project SchemaVersion="1.3"> <assemblies> <assembly location="..\bin\System.Data.SQLite.DLL" documentation="..\bin\System.Data.SQLite.xml" /> </assemblies> <documenters> <documenter name="JavaDoc"> <property name="OutputDirectory" value=".\doc\" /> </documenter> <documenter name="LaTeX"> <property name="OutputDirectory" value=".\doc\" /> <property name="TextFileFullName" value="Documentation.tex" /> <property name="TexFileBaseName" value="Documentation" /> <property name="LatexCompiler" value="latex" /> <property name="TexFileFullPath" value=".\doc\Documentation.tex" /> </documenter> <documenter name="MSDN"> <property name="OutputDirectory" value="c:\src\SQLite.NET\Doc\" /> <property name="HtmlHelpName" value="SQLite.NET" /> <property name="Title" value="SQLite.NET Class Library" /> <property name="OutputTarget" value="HtmlHelp" /> <property name="IncludeFavorites" value="True" /> <property name="AssemblyVersionInfo" value="AssemblyVersion" /> <property name="FeedbackEmailAddress" value="robert@blackcastlesoft.com" /> <property name="SdkDocVersion" value="SDK_v2_0" /> <property name="IncludeDefaultThreadSafety" value="False" /> </documenter> <documenter name="VS.NET 2003"> <property name="OutputDirectory" value=".\doc\" /> <property name="HtmlHelpName" value="Documentation" /> <property name="Title" value="An NDoc documented library" /> </documenter> <documenter name="XML"> <property name="OutputFile" value=".\doc\doc.xml" /> </documenter> <documenter name="MSDN 2003"> <property name="OutputDirectory" value=".\doc\" /> <property name="Title" value="An NDoc Documented Class Library" /> </documenter> </documenters> </project> |
Deleted Doc/System.Data.SQLite.XML.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted Doc/ndoc.log.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Changes to SQLite.Designer/AssemblyInfo.cs.
︙ | ︙ | |||
28 29 30 31 32 33 34 | // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: | | | | 28 29 30 31 32 33 34 35 36 37 38 39 | // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.25.0")] [assembly: AssemblyFileVersion("1.0.25.0")] [assembly:AssemblyDelaySignAttribute(false)] [assembly:AssemblyKeyFileAttribute("..\\System.Data.SQLite\\System.Data.SQLite.snk")] [assembly:AssemblyKeyNameAttribute("")] |
Changes to SQLite.Interop/SQLite.Interop.rc.
︙ | ︙ | |||
49 50 51 52 53 54 55 | ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO | | | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,25,0 PRODUCTVERSION 1,0,0,0 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x4L FILETYPE 0x2L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "Comments", "http://sourceforge.net/projects/sqlite-dotnet2" VALUE "FileDescription", "SQLite.NET Interop Library" VALUE "FileVersion", "1.0.25.0" VALUE "InternalName", "SQLite.Interop.DLL" VALUE "LegalCopyright", "Released to the public domain" VALUE "OriginalFilename", "SQLite3.DLL 3.3.3" VALUE "ProductName", "SQLite.NET" VALUE "ProductVersion", "1.0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1200 |
︙ | ︙ |
Changes to SQLite.Interop/SQLite.Interop.vcproj.
︙ | ︙ | |||
493 494 495 496 497 498 499 500 501 502 503 504 505 506 | Name="VCCLCompilerTool" ExecutionBucket="7" AdditionalOptions="/GS-" Optimization="0" FavorSizeOrSpeed="0" PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);_DEBUG;_WINDOWS;_USRDLL;CPPSMART_EXPORTS;$(ARCHFAM);$(_ARCHFAM_);UNICODE;_UNICODE;SQLITE_HAS_CODEC" RuntimeLibrary="3" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" | > | 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 | Name="VCCLCompilerTool" ExecutionBucket="7" AdditionalOptions="/GS-" Optimization="0" FavorSizeOrSpeed="0" PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);_DEBUG;_WINDOWS;_USRDLL;CPPSMART_EXPORTS;$(ARCHFAM);$(_ARCHFAM_);UNICODE;_UNICODE;SQLITE_HAS_CODEC" RuntimeLibrary="3" EnableFunctionLevelLinking="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" |
︙ | ︙ |
Changes to SQLite.Interop/interop.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #if NDEBUG #if _WIN32_WCE #include "merge.h" #else #include "merge_full.h" #endif // _WIN32_WCE #endif // NDEBUG // Forward declare this function, we're implementing it later static void generateColumnNames( Parse *pParse, /* Parser context */ SrcList *pTabList, /* List of tables */ ExprList *pEList /* Expressions defining the result set */ ); | > > > > > > > > > > > > > > > | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #if NDEBUG #if _WIN32_WCE #include "merge.h" #else #include "merge_full.h" #endif // _WIN32_WCE #endif // NDEBUG HMODULE g_hMod = 0; BOOL WINAPI DllMain(HMODULE hMod, DWORD dwReason, LPVOID pvReserved) { if (dwReason == DLL_PROCESS_ATTACH) g_hMod = hMod; return TRUE; } __declspec(dllexport) void WINAPI testfunc() { PIMAGE_DOS_HEADER pDos = (LPVOID)g_hMod; } // Forward declare this function, we're implementing it later static void generateColumnNames( Parse *pParse, /* Parser context */ SrcList *pTabList, /* List of tables */ ExprList *pEList /* Expressions defining the result set */ ); |
︙ | ︙ |
Changes to SQLite.Interop/merge.h.
1 2 3 4 5 6 7 | // This code was automatically generated from assembly // C:\src\SQLite.NET\System.Data.SQLite\bin\CompactFramework\System.Data.SQLite.dll #include <windef.h> #pragma data_seg(".clr") #pragma comment(linker, "/SECTION:.clr,ER") | | > > | > > > > | > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | // This code was automatically generated from assembly // C:\src\SQLite.NET\System.Data.SQLite\bin\CompactFramework\System.Data.SQLite.dll #include <windef.h> #pragma data_seg(".clr") #pragma comment(linker, "/SECTION:.clr,ER") char __ph[86336] = {0}; // The number of bytes to reserve #pragma data_seg() typedef BOOL (WINAPI *DLLMAIN)(HANDLE, DWORD, LPVOID); typedef struct EXTRA_STUFF { DWORD dwNativeEntryPoint; } EXTRA_STUFF, *LPEXTRA_STUFF; __declspec(dllexport) BOOL WINAPI _CorDllMainStub(HANDLE hModule, DWORD dwReason, LPVOID pvReserved) { HANDLE hMod; DLLMAIN proc; LPEXTRA_STUFF pExtra; hMod = GetModuleHandle(_T("mscoree")); if (hMod) proc = (DLLMAIN)GetProcAddress(hMod, _T("_CorDllMain")); else { MEMORY_BASIC_INFORMATION mbi; VirtualQuery(_CorDllMainStub, &mbi, sizeof(mbi)); pExtra = (LPEXTRA_STUFF)__ph; proc = (DLLMAIN)(pExtra->dwNativeEntryPoint + (DWORD)mbi.AllocationBase); } return proc(hModule, dwReason, pvReserved); } |
Changes to SQLite.Interop/merge_full.h.
1 2 3 4 5 6 7 | // This code was automatically generated from assembly // C:\src\SQLite.NET\System.Data.SQLite\bin\System.Data.SQLite.dll #include <windef.h> #pragma data_seg(".clr") #pragma comment(linker, "/SECTION:.clr,ER") | | > > | > > > > | > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | // This code was automatically generated from assembly // C:\src\SQLite.NET\System.Data.SQLite\bin\System.Data.SQLite.dll #include <windef.h> #pragma data_seg(".clr") #pragma comment(linker, "/SECTION:.clr,ER") char __ph[99032] = {0}; // The number of bytes to reserve #pragma data_seg() typedef BOOL (WINAPI *DLLMAIN)(HANDLE, DWORD, LPVOID); typedef struct EXTRA_STUFF { DWORD dwNativeEntryPoint; } EXTRA_STUFF, *LPEXTRA_STUFF; __declspec(dllexport) BOOL WINAPI _CorDllMainStub(HANDLE hModule, DWORD dwReason, LPVOID pvReserved) { HANDLE hMod; DLLMAIN proc; LPEXTRA_STUFF pExtra; hMod = GetModuleHandle(_T("mscoree")); if (hMod) proc = (DLLMAIN)GetProcAddress(hMod, _T("_CorDllMain")); else { MEMORY_BASIC_INFORMATION mbi; VirtualQuery(_CorDllMainStub, &mbi, sizeof(mbi)); pExtra = (LPEXTRA_STUFF)__ph; proc = (DLLMAIN)(pExtra->dwNativeEntryPoint + (DWORD)mbi.AllocationBase); } return proc(hModule, dwReason, pvReserved); } |
Changes to SQLite.Interop/src/alter.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that used to generate VDBE code ** that implements the ALTER TABLE command. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that used to generate VDBE code ** that implements the ALTER TABLE command. ** ** $Id: alter.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include <ctype.h> /* ** The code in this file only exists if we are not omitting the ** ALTER TABLE logic from the build. |
︙ | ︙ | |||
402 403 404 405 406 407 408 409 410 411 412 413 414 415 | iDb = sqlite3SchemaToIndex(pParse->db, pNew->pSchema); zDb = pParse->db->aDb[iDb].zName; zTab = pNew->zName; pCol = &pNew->aCol[pNew->nCol-1]; pDflt = pCol->pDflt; pTab = sqlite3FindTable(pParse->db, zTab, zDb); assert( pTab ); /* If the default value for the new column was specified with a ** literal NULL, then set pDflt to 0. This simplifies checking ** for an SQL NULL default below. */ if( pDflt && pDflt->op==TK_NULL ){ pDflt = 0; | > > > > > > > | 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 | iDb = sqlite3SchemaToIndex(pParse->db, pNew->pSchema); zDb = pParse->db->aDb[iDb].zName; zTab = pNew->zName; pCol = &pNew->aCol[pNew->nCol-1]; pDflt = pCol->pDflt; pTab = sqlite3FindTable(pParse->db, zTab, zDb); assert( pTab ); #ifndef SQLITE_OMIT_AUTHORIZATION /* Invoke the authorization callback. */ if( sqlite3AuthCheck(pParse, SQLITE_ALTER_TABLE, zDb, pTab->zName, 0) ){ return; } #endif /* If the default value for the new column was specified with a ** literal NULL, then set pDflt to 0. This simplifies checking ** for an SQL NULL default below. */ if( pDflt && pDflt->op==TK_NULL ){ pDflt = 0; |
︙ | ︙ |
Changes to SQLite.Interop/src/analyze.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2005 July 8 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code associated with the ANALYZE command. ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2005 July 8 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code associated with the ANALYZE command. ** ** @(#) $Id: analyze.c,v 1.11 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef SQLITE_OMIT_ANALYZE #include "sqliteInt.h" /* ** This routine generates code that opens the sqlite_stat1 table on cursor ** iStatCur. |
︙ | ︙ |
Changes to SQLite.Interop/src/attach.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code used to implement the ATTACH and DETACH commands. ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code used to implement the ATTACH and DETACH commands. ** ** $Id: attach.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Resolve an expression that was part of an ATTACH or DETACH statement. This ** is slightly different from resolving a normal SQL expression, because simple ** identifiers are treated as strings, not possible column names or aliases. |
︙ | ︙ | |||
29 30 31 32 33 34 35 | ** ** This only applies to the root node of pExpr, so the statement: ** ** ATTACH DATABASE abc||def AS 'db2' ** ** will fail because neither abc or def can be resolved. */ | | | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | ** ** This only applies to the root node of pExpr, so the statement: ** ** ATTACH DATABASE abc||def AS 'db2' ** ** will fail because neither abc or def can be resolved. */ static int resolveAttachExpr(NameContext *pName, Expr *pExpr) { int rc = SQLITE_OK; if( pExpr ){ if( pExpr->op!=TK_ID ){ rc = sqlite3ExprResolveNames(pName, pExpr); }else{ pExpr->op = TK_STRING; |
︙ | ︙ | |||
172 173 174 175 176 177 178 | */ if( rc==SQLITE_OK ){ sqlite3SafetyOn(db); rc = sqlite3Init(db, &zErrDyn); sqlite3SafetyOff(db); } if( rc ){ | | | | | | | | | 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | */ if( rc==SQLITE_OK ){ sqlite3SafetyOn(db); rc = sqlite3Init(db, &zErrDyn); sqlite3SafetyOff(db); } if( rc ){ int iDb = db->nDb - 1; assert( iDb>=2 ); if( db->aDb[iDb].pBt ){ sqlite3BtreeClose(db->aDb[iDb].pBt); db->aDb[iDb].pBt = 0; db->aDb[iDb].pSchema = 0; } sqlite3ResetInternalSchema(db, 0); db->nDb = iDb; sqlite3_snprintf(127, zErr, "unable to open database: %s", zFile); goto attach_error; } return; attach_error: |
︙ | ︙ |
Changes to SQLite.Interop/src/auth.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** This file contains code used to implement the sqlite3_set_authorizer() ** API. This facility is an optional feature of the library. Embedded ** systems that do not need this facility may omit it by recompiling ** the library with -DSQLITE_OMIT_AUTHORIZATION=1 ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** This file contains code used to implement the sqlite3_set_authorizer() ** API. This facility is an optional feature of the library. Embedded ** systems that do not need this facility may omit it by recompiling ** the library with -DSQLITE_OMIT_AUTHORIZATION=1 ** ** $Id: auth.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** All of the code in this file may be omitted by defining a single ** macro. */ |
︙ | ︙ |
Changes to SQLite.Interop/src/btree.c.
1 2 3 4 5 6 7 8 9 10 11 | /* ** 2004 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | /* ** 2004 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** $Id: btree.c,v 1.19 2006/01/31 19:16:13 rmsimpson Exp $ ** ** This file implements a external (disk-based) database using BTrees. ** For a detailed discussion of BTrees, refer to ** ** Donald E. Knuth, THE ART OF COMPUTER PROGRAMMING, Volume 3: ** "Sorting And Searching", pages 473-480. Addison-Wesley ** Publishing Company, Reading, Massachusetts. |
︙ | ︙ | |||
556 557 558 559 560 561 562 | ** with root-page iRoot. Usually, this is called just before cursor ** pExcept is used to modify the table (BtreeDelete() or BtreeInsert()). */ static int saveAllCursors(BtShared *pBt, Pgno iRoot, BtCursor *pExcept){ BtCursor *p; if( sqlite3ThreadDataReadOnly()->useSharedData ){ for(p=pBt->pCursor; p; p=p->pNext){ | > | | 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | ** with root-page iRoot. Usually, this is called just before cursor ** pExcept is used to modify the table (BtreeDelete() or BtreeInsert()). */ static int saveAllCursors(BtShared *pBt, Pgno iRoot, BtCursor *pExcept){ BtCursor *p; if( sqlite3ThreadDataReadOnly()->useSharedData ){ for(p=pBt->pCursor; p; p=p->pNext){ if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) && p->eState==CURSOR_VALID ){ int rc = saveCursorPosition(p); if( SQLITE_OK!=rc ){ return rc; } } } } |
︙ | ︙ | |||
1688 1689 1690 1691 1692 1693 1694 | BtShared *pBt = p->pBt; BtCursor *pCur; #ifndef SQLITE_OMIT_SHARED_CACHE ThreadData *pTsd; #endif | < < < | > > > | 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 | BtShared *pBt = p->pBt; BtCursor *pCur; #ifndef SQLITE_OMIT_SHARED_CACHE ThreadData *pTsd; #endif /* Close all cursors opened via this handle. */ pCur = pBt->pCursor; while( pCur ){ BtCursor *pTmp = pCur; pCur = pCur->pNext; if( pTmp->pBtree==p ){ sqlite3BtreeCloseCursor(pTmp); } } /* Rollback any active transaction and free the handle structure. ** The call to sqlite3BtreeRollback() drops any table-locks held by ** this handle. */ sqlite3BtreeRollback(p); sqliteFree(p); #ifndef SQLITE_OMIT_SHARED_CACHE /* If there are still other outstanding references to the shared-btree ** structure, return now. The remainder of this procedure cleans ** up the shared-btree. |
︙ | ︙ | |||
2533 2534 2535 2536 2537 2538 2539 | ** that was open at the beginning of this operation will result ** in an error. ** ** This will release the write lock on the database file. If there ** are no active cursors, it also releases the read lock. */ int sqlite3BtreeRollback(Btree *p){ | | > > > > > > > > > > > > > > > > > > > > > > > | | | 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 | ** that was open at the beginning of this operation will result ** in an error. ** ** This will release the write lock on the database file. If there ** are no active cursors, it also releases the read lock. */ int sqlite3BtreeRollback(Btree *p){ int rc; BtShared *pBt = p->pBt; MemPage *pPage1; rc = saveAllCursors(pBt, 0, 0); #ifndef SQLITE_OMIT_SHARED_CACHE if( rc!=SQLITE_OK ){ /* This is a horrible situation. An IO or malloc() error occured whilst ** trying to save cursor positions. If this is an automatic rollback (as ** the result of a constraint, malloc() failure or IO error) then ** the cache may be internally inconsistent (not contain valid trees) so ** we cannot simply return the error to the caller. Instead, abort ** all queries that may be using any of the cursors that failed to save. */ while( pBt->pCursor ){ sqlite3 *db = pBt->pCursor->pBtree->pSqlite; if( db ){ sqlite3AbortOtherActiveVdbes(db, 0); } } } #endif btreeIntegrity(p); unlockAllTables(p); if( p->inTrans==TRANS_WRITE ){ int rc2; assert( TRANS_WRITE==pBt->inTransaction ); rc2 = sqlite3pager_rollback(pBt->pPager); if( rc2!=SQLITE_OK ){ rc = rc2; } /* The rollback may have destroyed the pPage1->aData value. So ** call getPage() on page 1 again to make sure pPage1->aData is ** set correctly. */ if( getPage(pBt, 1, &pPage1)==SQLITE_OK ){ releasePage(pPage1); } assert( countWriteCursors(pBt)==0 ); |
︙ | ︙ |
Changes to SQLite.Interop/src/btree.h.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the sqlite B-Tree file ** subsystem. See comments in the source code for a detailed description ** of what each interface routine does. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the sqlite B-Tree file ** subsystem. See comments in the source code for a detailed description ** of what each interface routine does. ** ** @(#) $Id: btree.h,v 1.18 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef _BTREE_H_ #define _BTREE_H_ /* TODO: This definition is just included so other modules compile. It ** needs to be revisited. */ |
︙ | ︙ |
Changes to SQLite.Interop/src/build.c.
︙ | ︙ | |||
18 19 20 21 22 23 24 | ** CREATE INDEX ** DROP INDEX ** creating ID lists ** BEGIN TRANSACTION ** COMMIT ** ROLLBACK ** | | | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ** CREATE INDEX ** DROP INDEX ** creating ID lists ** BEGIN TRANSACTION ** COMMIT ** ROLLBACK ** ** $Id: build.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include <ctype.h> /* ** This routine is called when a new SQL statement is beginning to ** be parsed. Initialize the pParse structure as needed. |
︙ | ︙ | |||
3153 3154 3155 3156 3157 3158 3159 | if( pName1==0 || pName1->z==0 ){ reindexDatabases(pParse, 0); return; }else if( pName2==0 || pName2->z==0 ){ assert( pName1->z ); pColl = sqlite3FindCollSeq(db, ENC(db), (char*)pName1->z, pName1->n, 0); if( pColl ){ | | | | | | 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 | if( pName1==0 || pName1->z==0 ){ reindexDatabases(pParse, 0); return; }else if( pName2==0 || pName2->z==0 ){ assert( pName1->z ); pColl = sqlite3FindCollSeq(db, ENC(db), (char*)pName1->z, pName1->n, 0); if( pColl ){ char *zColl = sqliteStrNDup((const char *)pName1->z, pName1->n); if( zColl ){ reindexDatabases(pParse, zColl); sqliteFree(zColl); } return; } } iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pObjName); if( iDb<0 ) return; z = sqlite3NameFromToken(pObjName); |
︙ | ︙ |
Changes to SQLite.Interop/src/callback.c.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** ** This file contains functions used to access the internal hash tables ** of user defined functions and collation sequences. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** ** This file contains functions used to access the internal hash tables ** of user defined functions and collation sequences. ** ** $Id: callback.c,v 1.13 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Invoke the 'collation needed' callback to request a collation sequence ** in the database text encoding of name zName, length nName. |
︙ | ︙ |
Changes to SQLite.Interop/src/complete.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** An tokenizer for SQL ** ** This file contains C code that implements the sqlite3_complete() API. ** This code used to be part of the tokenizer.c source file. But by ** separating it out, the code will be automatically omitted from ** static links that do not use it. ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** An tokenizer for SQL ** ** This file contains C code that implements the sqlite3_complete() API. ** This code used to be part of the tokenizer.c source file. But by ** separating it out, the code will be automatically omitted from ** static links that do not use it. ** ** $Id: complete.c,v 1.11 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #ifndef SQLITE_OMIT_COMPLETE /* ** This is defined in tokenize.c. We just have to import the definition. */ |
︙ | ︙ |
Changes to SQLite.Interop/src/date.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** This file contains the C functions that implement date and time ** functions for SQLite. ** ** There is only one exported symbol in this file - the function ** sqlite3RegisterDateTimeFunctions() found at the bottom of the file. ** All other code has file scope. ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** This file contains the C functions that implement date and time ** functions for SQLite. ** ** There is only one exported symbol in this file - the function ** sqlite3RegisterDateTimeFunctions() found at the bottom of the file. ** All other code has file scope. ** ** $Id: date.c,v 1.18 2006/01/31 19:16:13 rmsimpson Exp $ ** ** NOTES: ** ** SQLite processes all times and dates as Julian Day numbers. The ** dates and times are stored as the number of days since noon ** in Greenwich on November 24, 4714 B.C. according to the Gregorian ** calendar system. |
︙ | ︙ | |||
814 815 816 817 818 819 820 | sprintf(&z[j],"%02d.%03d",s,ms); j += strlen(&z[j]); break; } case 'H': sprintf(&z[j],"%02d",x.h); j+=2; break; case 'W': /* Fall thru */ case 'j': { | | | | | | 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 | sprintf(&z[j],"%02d.%03d",s,ms); j += strlen(&z[j]); break; } case 'H': sprintf(&z[j],"%02d",x.h); j+=2; break; case 'W': /* Fall thru */ case 'j': { int nDay; /* Number of days since 1st day of year */ DateTime y = x; y.validJD = 0; y.M = 1; y.D = 1; computeJD(&y); nDay = x.rJD - y.rJD; if( zFmt[i]=='W' ){ int wd; /* 0=Monday, 1=Tuesday, ... 6=Sunday */ wd = ((int)(x.rJD+0.5)) % 7; sprintf(&z[j],"%02d",(nDay+7-wd)/7); j += 2; }else{ sprintf(&z[j],"%03d",nDay+1); j += 3; } break; } case 'J': sprintf(&z[j],"%.16g",x.rJD); j+=strlen(&z[j]); break; case 'm': sprintf(&z[j],"%02d",x.M); j+=2; break; case 'M': sprintf(&z[j],"%02d",x.m); j+=2; break; |
︙ | ︙ |
Changes to SQLite.Interop/src/delete.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** in order to generate code for DELETE FROM statements. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** in order to generate code for DELETE FROM statements. ** ** $Id: delete.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Look up every table that is named in pSrc. If any table is not found, ** add an error message to pParse->zErrMsg and return NULL. If all tables ** are found, return a pointer to the last table. |
︙ | ︙ | |||
206 207 208 209 210 211 212 | ** this means that the row change count will be incorrect. */ if( pWhere==0 && !triggers_exist ){ if( db->flags & SQLITE_CountRows ){ /* If counting rows deleted, just count the total number of ** entries in the table. */ int endOfLoop = sqlite3VdbeMakeLabel(v); | | | | | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | ** this means that the row change count will be incorrect. */ if( pWhere==0 && !triggers_exist ){ if( db->flags & SQLITE_CountRows ){ /* If counting rows deleted, just count the total number of ** entries in the table. */ int endOfLoop = sqlite3VdbeMakeLabel(v); int addr2; if( !isView ){ sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenRead); } sqlite3VdbeAddOp(v, OP_Rewind, iCur, sqlite3VdbeCurrentAddr(v)+2); addr2 = sqlite3VdbeAddOp(v, OP_AddImm, 1, 0); sqlite3VdbeAddOp(v, OP_Next, iCur, addr2); sqlite3VdbeResolveLabel(v, endOfLoop); sqlite3VdbeAddOp(v, OP_Close, iCur, 0); } if( !isView ){ sqlite3VdbeAddOp(v, OP_Clear, pTab->tnum, iDb); if( !pParse->nested ){ sqlite3VdbeChangeP3(v, -1, pTab->zName, P3_STATIC); |
︙ | ︙ |
Deleted SQLite.Interop/src/experimental.c.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Changes to SQLite.Interop/src/expr.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** ** $Id: expr.c,v 1.24 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include <ctype.h> /* ** Return the 'affinity' of the expression pExpr if any. ** |
︙ | ︙ | |||
914 915 916 917 918 919 920 | }else if( pTriggerStack->oldIdx != -1 && sqlite3StrICmp("old", zTab)==0 ){ pExpr->iTable = pTriggerStack->oldIdx; assert( pTriggerStack->pTab ); pTab = pTriggerStack->pTab; } if( pTab ){ | | | | | | | 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 | }else if( pTriggerStack->oldIdx != -1 && sqlite3StrICmp("old", zTab)==0 ){ pExpr->iTable = pTriggerStack->oldIdx; assert( pTriggerStack->pTab ); pTab = pTriggerStack->pTab; } if( pTab ){ int iCol; Column *pCol = pTab->aCol; pExpr->pSchema = pTab->pSchema; cntTab++; for(iCol=0; iCol < pTab->nCol; iCol++, pCol++) { if( sqlite3StrICmp(pCol->zName, zCol)==0 ){ const char *zColl = pTab->aCol[iCol].zColl; cnt++; pExpr->iColumn = iCol==pTab->iPKey ? -1 : iCol; pExpr->affinity = pTab->aCol[iCol].affinity; pExpr->pColl = sqlite3FindCollSeq(db, ENC(db), zColl,-1, 0); pExpr->pTab = pTab; break; } } } } |
︙ | ︙ | |||
1073 1074 1075 1076 1077 1078 1079 | ** ** This routine also does error checking and name resolution for ** function names. The operator for aggregate functions is changed ** to TK_AGG_FUNCTION. */ static int nameResolverStep(void *pArg, Expr *pExpr){ NameContext *pNC = (NameContext*)pArg; | < < | > | | 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 | ** ** This routine also does error checking and name resolution for ** function names. The operator for aggregate functions is changed ** to TK_AGG_FUNCTION. */ static int nameResolverStep(void *pArg, Expr *pExpr){ NameContext *pNC = (NameContext*)pArg; Parse *pParse; if( pExpr==0 ) return 1; assert( pNC!=0 ); pParse = pNC->pParse; if( ExprHasAnyProperty(pExpr, EP_Resolved) ) return 1; ExprSetProperty(pExpr, EP_Resolved); #ifndef NDEBUG if( pNC->pSrcList && pNC->pSrcList->nAlloc>0 ){ SrcList *pSrcList = pNC->pSrcList; int i; for(i=0; i<pNC->pSrcList->nSrc; i++){ assert( pSrcList->a[i].iCursor>=0 && pSrcList->a[i].iCursor<pParse->nTab); } } #endif switch( pExpr->op ){ /* Double-quoted strings (ex: "abc") are used as identifiers if ** possible. Otherwise they remain as strings. Single-quoted |
︙ | ︙ | |||
1376 1377 1378 1379 1380 1381 1382 | /* If the expression is not constant then we will need to ** disable the test that was generated above that makes sure ** this code only executes once. Because for a non-constant ** expression we need to rerun this code each time. */ if( testAddr>0 && !sqlite3ExprIsConstant(pE2) ){ VdbeOp *aOp = sqlite3VdbeGetOp(v, testAddr-1); | | | | | 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 | /* If the expression is not constant then we will need to ** disable the test that was generated above that makes sure ** this code only executes once. Because for a non-constant ** expression we need to rerun this code each time. */ if( testAddr>0 && !sqlite3ExprIsConstant(pE2) ){ VdbeOp *aOp = sqlite3VdbeGetOp(v, testAddr-1); int j; for(j=0; j<3; j++){ aOp[j].opcode = OP_Noop; } testAddr = 0; } /* Evaluate the expression and insert it into the temp table */ sqlite3ExprCode(pParse, pE2); sqlite3VdbeOp3(v, OP_MakeRecord, 1, 0, &affinity, 1); |
︙ | ︙ | |||
1544 1545 1546 1547 1548 1549 1550 | case TK_REGISTER: { sqlite3VdbeAddOp(v, OP_MemLoad, pExpr->iTable, 0); break; } #ifndef SQLITE_OMIT_CAST case TK_CAST: { /* Expressions of the form: CAST(pLeft AS token) */ | | | | | | | | | | 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 | case TK_REGISTER: { sqlite3VdbeAddOp(v, OP_MemLoad, pExpr->iTable, 0); break; } #ifndef SQLITE_OMIT_CAST case TK_CAST: { /* Expressions of the form: CAST(pLeft AS token) */ int aff, to_op; sqlite3ExprCode(pParse, pExpr->pLeft); aff = sqlite3AffinityType(&pExpr->token); to_op = aff - SQLITE_AFF_TEXT + OP_ToText; assert( to_op==OP_ToText || aff!=SQLITE_AFF_TEXT ); assert( to_op==OP_ToBlob || aff!=SQLITE_AFF_NONE ); assert( to_op==OP_ToNumeric || aff!=SQLITE_AFF_NUMERIC ); assert( to_op==OP_ToInt || aff!=SQLITE_AFF_INTEGER ); assert( to_op==OP_ToReal || aff!=SQLITE_AFF_REAL ); sqlite3VdbeAddOp(v, to_op, 0, 0); stackChng = 0; break; } #endif /* SQLITE_OMIT_CAST */ case TK_LT: case TK_LE: case TK_GT: |
︙ | ︙ | |||
1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 | sqlite3VdbeAddOp(v, OP_MemLoad, pExpr->iColumn, 0); VdbeComment((v, "# load subquery result")); break; } case TK_IN: { int addr; char affinity; sqlite3CodeSubselect(pParse, pExpr); /* Figure out the affinity to use to create a key from the results ** of the expression. affinityStr stores a static string suitable for ** P3 of OP_MakeRecord. */ affinity = comparisonAffinity(pExpr); sqlite3VdbeAddOp(v, OP_Integer, 1, 0); /* Code the <expr> from "<expr> IN (...)". The temporary table ** pExpr->iTable contains the values that make up the (...) set. */ sqlite3ExprCode(pParse, pExpr->pLeft); addr = sqlite3VdbeCurrentAddr(v); sqlite3VdbeAddOp(v, OP_NotNull, -1, addr+4); /* addr + 0 */ | > > | 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 | sqlite3VdbeAddOp(v, OP_MemLoad, pExpr->iColumn, 0); VdbeComment((v, "# load subquery result")); break; } case TK_IN: { int addr; char affinity; int ckOffset = pParse->ckOffset; sqlite3CodeSubselect(pParse, pExpr); /* Figure out the affinity to use to create a key from the results ** of the expression. affinityStr stores a static string suitable for ** P3 of OP_MakeRecord. */ affinity = comparisonAffinity(pExpr); sqlite3VdbeAddOp(v, OP_Integer, 1, 0); pParse->ckOffset = ckOffset+1; /* Code the <expr> from "<expr> IN (...)". The temporary table ** pExpr->iTable contains the values that make up the (...) set. */ sqlite3ExprCode(pParse, pExpr->pLeft); addr = sqlite3VdbeCurrentAddr(v); sqlite3VdbeAddOp(v, OP_NotNull, -1, addr+4); /* addr + 0 */ |
︙ | ︙ |
Changes to SQLite.Interop/src/func.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** This file contains the C functions that implement various SQL ** functions of SQLite. ** ** There is only one exported symbol in this file - the function ** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** All other code has file scope. ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** This file contains the C functions that implement various SQL ** functions of SQLite. ** ** There is only one exported symbol in this file - the function ** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** All other code has file scope. ** ** $Id: func.c,v 1.19 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include <ctype.h> /* #include <math.h> */ #include <stdlib.h> #include <assert.h> #include "vdbeInt.h" |
︙ | ︙ |
Changes to SQLite.Interop/src/hash.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This is the implementation of generic hash-tables ** used in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This is the implementation of generic hash-tables ** used in SQLite. ** ** $Id: hash.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include <assert.h> /* Turn bulk memory into a hash table object by initializing the ** fields of the Hash structure. ** |
︙ | ︙ |
Changes to SQLite.Interop/src/hash.h.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This is the header file for the generic hash-table implemenation ** used in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This is the header file for the generic hash-table implemenation ** used in SQLite. ** ** $Id: hash.h,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef _SQLITE_HASH_H_ #define _SQLITE_HASH_H_ /* Forward declarations of structures. */ typedef struct Hash Hash; typedef struct HashElem HashElem; |
︙ | ︙ |
Changes to SQLite.Interop/src/insert.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle INSERT statements in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle INSERT statements in SQLite. ** ** $Id: insert.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Set P3 of the most recently inserted opcode to a column affinity ** string for index pIdx. A column affinity string has one character ** for each column in the table, according to the affinity of the column: |
︙ | ︙ | |||
293 294 295 296 297 298 299 | /* If this is an AUTOINCREMENT table, look up the sequence number in the ** sqlite_sequence table and store it in memory cell counterMem. Also ** remember the rowid of the sqlite_sequence table entry in memory cell ** counterRowid. */ if( pTab->autoInc ){ int iCur = pParse->nTab; | | | | | | | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | /* If this is an AUTOINCREMENT table, look up the sequence number in the ** sqlite_sequence table and store it in memory cell counterMem. Also ** remember the rowid of the sqlite_sequence table entry in memory cell ** counterRowid. */ if( pTab->autoInc ){ int iCur = pParse->nTab; int addr = sqlite3VdbeCurrentAddr(v); counterRowid = pParse->nMem++; counterMem = pParse->nMem++; sqlite3OpenTable(pParse, iCur, iDb, pDb->pSchema->pSeqTab, OP_OpenRead); sqlite3VdbeAddOp(v, OP_Rewind, iCur, addr+13); sqlite3VdbeAddOp(v, OP_Column, iCur, 0); sqlite3VdbeOp3(v, OP_String8, 0, 0, pTab->zName, 0); sqlite3VdbeAddOp(v, OP_Ne, 0x100, addr+12); sqlite3VdbeAddOp(v, OP_Rowid, iCur, 0); sqlite3VdbeAddOp(v, OP_MemStore, counterRowid, 1); sqlite3VdbeAddOp(v, OP_Column, iCur, 1); sqlite3VdbeAddOp(v, OP_MemStore, counterMem, 1); sqlite3VdbeAddOp(v, OP_Goto, 0, addr+13); sqlite3VdbeAddOp(v, OP_Next, iCur, addr+4); sqlite3VdbeAddOp(v, OP_Close, iCur, 0); } #endif /* SQLITE_OMIT_AUTOINCREMENT */ /* Figure out how many columns of data are supplied. If the data ** is coming from a SELECT statement, then this step also generates ** all the code to implement the SELECT statement and invoke a subroutine |
︙ | ︙ | |||
676 677 678 679 680 681 682 | #ifndef SQLITE_OMIT_AUTOINCREMENT /* Update the sqlite_sequence table by storing the content of the ** counter value in memory counterMem back into the sqlite_sequence ** table. */ if( pTab->autoInc ){ int iCur = pParse->nTab; | | | | 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 | #ifndef SQLITE_OMIT_AUTOINCREMENT /* Update the sqlite_sequence table by storing the content of the ** counter value in memory counterMem back into the sqlite_sequence ** table. */ if( pTab->autoInc ){ int iCur = pParse->nTab; int addr = sqlite3VdbeCurrentAddr(v); sqlite3OpenTable(pParse, iCur, iDb, pDb->pSchema->pSeqTab, OP_OpenWrite); sqlite3VdbeAddOp(v, OP_MemLoad, counterRowid, 0); sqlite3VdbeAddOp(v, OP_NotNull, -1, addr+7); sqlite3VdbeAddOp(v, OP_Pop, 1, 0); sqlite3VdbeAddOp(v, OP_NewRowid, iCur, 0); sqlite3VdbeOp3(v, OP_String8, 0, 0, pTab->zName, 0); sqlite3VdbeAddOp(v, OP_MemLoad, counterMem, 0); sqlite3VdbeAddOp(v, OP_MakeRecord, 2, 0); sqlite3VdbeAddOp(v, OP_Insert, iCur, 0); sqlite3VdbeAddOp(v, OP_Close, iCur, 0); |
︙ | ︙ |
Changes to SQLite.Interop/src/keywordhash.h.
︙ | ︙ | |||
8 9 10 11 12 13 14 | "CASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSS" "CURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCH" "FAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULL" "JOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNION" "UNIQUEUSINGVACUUMVALUESVIEWHERE"; static const unsigned char aHash[127] = { 92, 80, 107, 91, 0, 4, 0, 0, 114, 0, 83, 0, 0, | | | | | | | | | | | | | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | "CASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSS" "CURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCH" "FAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULL" "JOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNION" "UNIQUEUSINGVACUUMVALUESVIEWHERE"; static const unsigned char aHash[127] = { 92, 80, 107, 91, 0, 4, 0, 0, 114, 0, 83, 0, 0, 95, 44, 76, 93, 0, 106, 109, 97, 90, 0, 10, 0, 0, 113, 0, 110, 103, 0, 28, 48, 0, 41, 0, 0, 65, 71, 0, 63, 19, 0, 105, 36, 104, 0, 108, 74, 0, 0, 33, 0, 61, 37, 0, 8, 0, 115, 38, 12, 0, 77, 40, 25, 66, 0, 0, 31, 81, 53, 30, 50, 20, 88, 0, 34, 0, 75, 26, 0, 72, 0, 0, 0, 64, 47, 67, 22, 87, 29, 69, 86, 0, 1, 0, 9, 101, 58, 18, 0, 112, 82, 99, 54, 6, 85, 0, 0, 49, 94, 0, 102, 0, 70, 0, 0, 15, 0, 116, 51, 56, 0, 2, 55, 0, 111, }; static const unsigned char aNext[116] = { 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 5, 13, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 0, 16, 0, 23, 52, 0, 0, 0, 0, 45, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 73, 42, 0, 24, 60, 21, 0, 79, 0, 0, 68, 0, 0, 84, 46, 0, 0, 0, 0, 0, 0, 0, 0, 39, 96, 98, 0, 0, 100, 0, 32, 0, 14, 27, 78, 0, 57, 89, 0, 35, 0, 62, 0, }; static const unsigned char aLen[116] = { 5, 5, 4, 4, 9, 2, 3, 8, 2, 6, 4, 3, 7, 11, 2, 7, 5, 5, 4, 5, 3, 5, 10, 6, 4, 6, 7, 6, 7, 9, 3, 7, 9, 6, 9, 3, 10, 6, 6, 4, 6, 3, 7, 6, 7, 5, 13, 2, 2, 5, 5, 6, 7, 3, 7, 4, 4, 2, 7, 3, 8, 6, 4, 4, 7, 6, 6, 8, 10, 9, 6, 5, 12, 12, 17, 4, 4, 6, 8, 2, 4, 6, 5, 4, 5, 4, 4, 5, 6, 2, 9, 6, 7, 4, 2, 6, 3, 6, 4, 5, 7, 5, 8, 7, 5, 5, 8, 3, 4, 5, 6, 5, 6, 6, 4, 5, }; static const unsigned short int aOffset[116] = { 0, 4, 7, 10, 10, 14, 19, 21, 26, 27, 32, 34, 36, 42, 51, 52, 57, 61, 65, 67, 71, 74, 78, 86, 91, 94, 99, 105, 108, 113, 118, 122, 128, 136, 141, 150, 152, 162, 167, 172, 175, 177, 177, 181, 185, 187, 192, 194, 196, 205, 208, 212, |
︙ | ︙ | |||
60 61 62 63 64 65 66 | TK_OR, TK_ADD, TK_DATABASE, TK_AS, TK_SELECT, TK_THEN, TK_END, TK_DEFAULT, TK_TRANSACTION,TK_ON, TK_JOIN_KW, TK_ALTER, TK_RAISE, TK_EACH, TK_CHECK, TK_KEY, TK_AFTER, TK_REFERENCES, TK_ESCAPE, TK_ELSE, TK_EXCEPT, TK_TRIGGER, TK_LIKE_KW, TK_EXPLAIN, TK_INITIALLY, TK_ALL, TK_ANALYZE, TK_EXCLUSIVE, TK_EXISTS, TK_STATEMENT, TK_AND, TK_DEFERRABLE, TK_ATTACH, TK_HAVING, TK_LIKE_KW, | | | | | | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | TK_OR, TK_ADD, TK_DATABASE, TK_AS, TK_SELECT, TK_THEN, TK_END, TK_DEFAULT, TK_TRANSACTION,TK_ON, TK_JOIN_KW, TK_ALTER, TK_RAISE, TK_EACH, TK_CHECK, TK_KEY, TK_AFTER, TK_REFERENCES, TK_ESCAPE, TK_ELSE, TK_EXCEPT, TK_TRIGGER, TK_LIKE_KW, TK_EXPLAIN, TK_INITIALLY, TK_ALL, TK_ANALYZE, TK_EXCLUSIVE, TK_EXISTS, TK_STATEMENT, TK_AND, TK_DEFERRABLE, TK_ATTACH, TK_HAVING, TK_LIKE_KW, TK_BEFORE, TK_FOR, TK_FOREIGN, TK_IGNORE, TK_REINDEX, TK_INDEX, TK_AUTOINCR, TK_TO, TK_IN, TK_BEGIN, TK_JOIN_KW, TK_RENAME, TK_BETWEEN, TK_NOT, TK_NOTNULL, TK_NULL, TK_LIKE_KW, TK_BY, TK_CASCADE, TK_ASC, TK_DEFERRED, TK_DELETE, TK_CASE, TK_CAST, TK_COLLATE, TK_COLUMNKW, TK_COMMIT, TK_CONFLICT, TK_CONSTRAINT, TK_INTERSECT, TK_CREATE, TK_JOIN_KW, TK_CTIME_KW, TK_CTIME_KW, TK_CTIME_KW, TK_PLAN, TK_DESC, TK_DETACH, TK_DISTINCT, TK_IS, TK_DROP, TK_PRAGMA, TK_MATCH, TK_FAIL, TK_LIMIT, TK_FROM, TK_JOIN_KW, TK_GROUP, TK_UPDATE, TK_IF, TK_IMMEDIATE, TK_INSERT, TK_INSTEAD, TK_INTO, TK_OF, TK_OFFSET, TK_SET, TK_ISNULL, TK_JOIN, TK_ORDER, TK_REPLACE, TK_JOIN_KW, TK_RESTRICT, TK_PRIMARY, TK_QUERY, TK_JOIN_KW, TK_ROLLBACK, TK_ROW, TK_WHEN, TK_UNION, TK_UNIQUE, TK_USING, TK_VACUUM, TK_VALUES, TK_VIEW, TK_WHERE, }; int h, i; if( n<2 ) return TK_ID; |
︙ | ︙ |
Changes to SQLite.Interop/src/legacy.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** ** $Id: legacy.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> /* |
︙ | ︙ |
Changes to SQLite.Interop/src/main.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** ** $Id: main.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> /* ** The following constant value is used by the SQLITE_BIGENDIAN and |
︙ | ︙ | |||
127 128 129 130 131 132 133 | ** "failed to open" state. */ if( db->magic!=SQLITE_MAGIC_CLOSED && sqlite3SafetyOn(db) ){ /* printf("DID NOT CLOSE\n"); fflush(stdout); */ return SQLITE_ERROR; } | < < < | 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | ** "failed to open" state. */ if( db->magic!=SQLITE_MAGIC_CLOSED && sqlite3SafetyOn(db) ){ /* printf("DID NOT CLOSE\n"); fflush(stdout); */ return SQLITE_ERROR; } for(j=0; j<db->nDb; j++){ struct Db *pDb = &db->aDb[j]; if( pDb->pBt ){ sqlite3BtreeClose(pDb->pBt); pDb->pBt = 0; if( j!=1 ){ pDb->pSchema = 0; |
︙ | ︙ | |||
173 174 175 176 177 178 179 | ** objects (using sqliteMalloc() directly, instead of sqlite3BtreeSchema()). ** So it needs to be freed here. Todo: Why not roll the temp schema into ** the same sqliteMalloc() as the one that allocates the database ** structure? */ sqliteFree(db->aDb[1].pSchema); sqliteFree(db); | < | 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | ** objects (using sqliteMalloc() directly, instead of sqlite3BtreeSchema()). ** So it needs to be freed here. Todo: Why not roll the temp schema into ** the same sqliteMalloc() as the one that allocates the database ** structure? */ sqliteFree(db->aDb[1].pSchema); sqliteFree(db); sqlite3ReleaseThreadData(); return SQLITE_OK; } /* ** Rollback all database files. */ |
︙ | ︙ | |||
1084 1085 1086 1087 1088 1089 1090 | ** current thread. ** ** This routine should only be called when there are no open ** database connections. */ int sqlite3_enable_shared_cache(int enable){ ThreadData *pTd = sqlite3ThreadData(); | | < < < | | | | | | | | | | | > | | 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 | ** current thread. ** ** This routine should only be called when there are no open ** database connections. */ int sqlite3_enable_shared_cache(int enable){ ThreadData *pTd = sqlite3ThreadData(); if( pTd ){ /* It is only legal to call sqlite3_enable_shared_cache() when there ** are no currently open b-trees that were opened by the calling thread. ** This condition is only easy to detect if the shared-cache were ** previously enabled (and is being disabled). */ if( pTd->pBtree && !enable ){ assert( pTd->useSharedData ); return SQLITE_MISUSE; } pTd->useSharedData = enable; sqlite3ReleaseThreadData(); } return sqlite3ApiExit(0, SQLITE_OK); } #endif /* ** This is a convenience routine that makes sure that all thread-specific ** data for this thread has been deallocated. */ |
︙ | ︙ |
Deleted SQLite.Interop/src/md5.c.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Changes to SQLite.Interop/src/opcodes.c.
1 2 3 4 5 | /* Automatically generated. Do not edit */ /* See the mkopcodec.awk script for details. */ #if !defined(SQLITE_OMIT_EXPLAIN) || !defined(NDEBUG) || defined(VDBE_PROFILE) || defined(SQLITE_DEBUG) const char *const sqlite3OpcodeNames[] = { "?", /* 1 */ "MemLoad", | < < < < < < < < > < < < < < < < < < < < > > > > > > > > > > > > > > > > > > > > > > > < < < < < < < < < < < < > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | /* Automatically generated. Do not edit */ /* See the mkopcodec.awk script for details. */ #if !defined(SQLITE_OMIT_EXPLAIN) || !defined(NDEBUG) || defined(VDBE_PROFILE) || defined(SQLITE_DEBUG) const char *const sqlite3OpcodeNames[] = { "?", /* 1 */ "MemLoad", /* 2 */ "Column", /* 3 */ "SetCookie", /* 4 */ "IfMemPos", /* 5 */ "Sequence", /* 6 */ "MoveGt", /* 7 */ "RowKey", /* 8 */ "OpenWrite", /* 9 */ "If", /* 10 */ "Pop", /* 11 */ "CollSeq", /* 12 */ "OpenRead", /* 13 */ "Expire", /* 14 */ "AutoCommit", /* 15 */ "IntegrityCk", /* 16 */ "Not", /* 17 */ "Sort", /* 18 */ "Function", /* 19 */ "Noop", /* 20 */ "Return", /* 21 */ "NewRowid", /* 22 */ "IfMemNeg", /* 23 */ "Variable", /* 24 */ "String", /* 25 */ "RealAffinity", /* 26 */ "ParseSchema", /* 27 */ "Close", /* 28 */ "CreateIndex", /* 29 */ "IsUnique", /* 30 */ "IdxIsNull", /* 31 */ "NotFound", /* 32 */ "Int64", /* 33 */ "MustBeInt", /* 34 */ "Halt", /* 35 */ "Rowid", /* 36 */ "IdxLT", /* 37 */ "AddImm", /* 38 */ "Statement", /* 39 */ "RowData", /* 40 */ "MemMax", /* 41 */ "Push", /* 42 */ "NotExists", /* 43 */ "MemIncr", /* 44 */ "Gosub", /* 45 */ "Integer", /* 46 */ "MemInt", /* 47 */ "Prev", /* 48 */ "CreateTable", /* 49 */ "Last", /* 50 */ "IdxRowid", /* 51 */ "MakeIdxRec", /* 52 */ "ResetCount", /* 53 */ "FifoWrite", /* 54 */ "Callback", /* 55 */ "ContextPush", /* 56 */ "DropTrigger", /* 57 */ "DropIndex", /* 58 */ "IdxGE", /* 59 */ "Or", /* 60 */ "And", /* 61 */ "IdxDelete", /* 62 */ "Vacuum", /* 63 */ "MoveLe", /* 64 */ "IsNull", /* 65 */ "NotNull", /* 66 */ "Ne", /* 67 */ "Eq", /* 68 */ "Gt", /* 69 */ "Le", /* 70 */ "Lt", /* 71 */ "Ge", /* 72 */ "IfNot", /* 73 */ "BitAnd", /* 74 */ "BitOr", /* 75 */ "ShiftLeft", /* 76 */ "ShiftRight", /* 77 */ "Add", /* 78 */ "Subtract", /* 79 */ "Multiply", /* 80 */ "Divide", /* 81 */ "Remainder", /* 82 */ "Concat", /* 83 */ "Negative", /* 84 */ "DropTable", /* 85 */ "BitNot", /* 86 */ "String8", /* 87 */ "MakeRecord", /* 88 */ "Delete", /* 89 */ "AggFinal", /* 90 */ "Dup", /* 91 */ "Goto", /* 92 */ "TableLock", /* 93 */ "FifoRead", /* 94 */ "Clear", /* 95 */ "IdxGT", /* 96 */ "MoveLt", /* 97 */ "VerifyCookie", /* 98 */ "AggStep", /* 99 */ "Pull", /* 100 */ "SetNumColumns", /* 101 */ "AbsValue", /* 102 */ "Transaction", /* 103 */ "ContextPop", /* 104 */ "Next", /* 105 */ "IdxInsert", /* 106 */ "Distinct", /* 107 */ "Insert", /* 108 */ "Destroy", /* 109 */ "ReadCookie", /* 110 */ "ForceInt", /* 111 */ "LoadAnalysis", /* 112 */ "OpenVirtual", /* 113 */ "Explain", /* 114 */ "IfMemZero", /* 115 */ "OpenPseudo", /* 116 */ "Null", /* 117 */ "Blob", /* 118 */ "MemStore", /* 119 */ "Rewind", /* 120 */ "MoveGe", /* 121 */ "MemMove", /* 122 */ "MemNull", /* 123 */ "Found", /* 124 */ "Real", /* 125 */ "HexBlob", /* 126 */ "NullRow", /* 127 */ "NotUsed_127", /* 128 */ "NotUsed_128", /* 129 */ "NotUsed_129", /* 130 */ "NotUsed_130", /* 131 */ "NotUsed_131", /* 132 */ "NotUsed_132", /* 133 */ "NotUsed_133", /* 134 */ "NotUsed_134", /* 135 */ "NotUsed_135", /* 136 */ "NotUsed_136", /* 137 */ "ToText", /* 138 */ "ToBlob", /* 139 */ "ToNumeric", /* 140 */ "ToInt", /* 141 */ "ToReal", }; #endif |
Changes to SQLite.Interop/src/opcodes.h.
︙ | ︙ | |||
140 141 142 143 144 145 146 | #define OP_NotUsed_131 131 #define OP_NotUsed_132 132 #define OP_NotUsed_133 133 #define OP_NotUsed_134 134 #define OP_NotUsed_135 135 #define OP_NotUsed_136 136 | > > > | | | | | | | | | | | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | #define OP_NotUsed_131 131 #define OP_NotUsed_132 132 #define OP_NotUsed_133 133 #define OP_NotUsed_134 134 #define OP_NotUsed_135 135 #define OP_NotUsed_136 136 /* Opcodes that are guaranteed to never push a value onto the stack ** contain a 1 their corresponding position of the following mask ** set. See the opcodeNoPush() function in vdbeaux.c */ #define NOPUSH_MASK_0 0x7f58 #define NOPUSH_MASK_1 0xee5b #define NOPUSH_MASK_2 0x9f76 #define NOPUSH_MASK_3 0xfff2 #define NOPUSH_MASK_4 0xffff #define NOPUSH_MASK_5 0xdb3b #define NOPUSH_MASK_6 0xcfdf #define NOPUSH_MASK_7 0x49cd #define NOPUSH_MASK_8 0x3e00 #define NOPUSH_MASK_9 0x0000 |
Changes to SQLite.Interop/src/os.c.
︙ | ︙ | |||
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | } int sqlite3OsSync(OsFile *id, int fullsync){ return id->pMethod->xSync(id, fullsync); } void sqlite3OsSetFullSync(OsFile *id, int value){ id->pMethod->xSetFullSync(id, value); } int sqlite3OsFileHandle(OsFile *id){ return id->pMethod->xFileHandle(id); } int sqlite3OsFileSize(OsFile *id, i64 *pSize){ return id->pMethod->xFileSize(id, pSize); } int sqlite3OsLock(OsFile *id, int lockType){ return id->pMethod->xLock(id, lockType); } int sqlite3OsUnlock(OsFile *id, int lockType){ | > > > > > | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | } int sqlite3OsSync(OsFile *id, int fullsync){ return id->pMethod->xSync(id, fullsync); } void sqlite3OsSetFullSync(OsFile *id, int value){ id->pMethod->xSetFullSync(id, value); } #if defined(SQLITE_TEST) || defined(SQLITE_DEBUG) /* This method is currently only used while interactively debugging the ** pager. More specificly, it can only be used when sqlite3DebugPrintf() is ** included in the build. */ int sqlite3OsFileHandle(OsFile *id){ return id->pMethod->xFileHandle(id); } #endif int sqlite3OsFileSize(OsFile *id, i64 *pSize){ return id->pMethod->xFileSize(id, pSize); } int sqlite3OsLock(OsFile *id, int lockType){ return id->pMethod->xLock(id, lockType); } int sqlite3OsUnlock(OsFile *id, int lockType){ |
︙ | ︙ |
Changes to SQLite.Interop/src/os_unix.c.
︙ | ︙ | |||
446 447 448 449 450 451 452 | } /* ** This procedure attempts to determine whether or not threads ** can override each others locks then sets the ** threadsOverrideEachOthersLocks variable appropriately. */ | | | 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 | } /* ** This procedure attempts to determine whether or not threads ** can override each others locks then sets the ** threadsOverrideEachOthersLocks variable appropriately. */ static void testThreadLockingBehavior(int fd_orig){ int fd; struct threadTestData d[2]; pthread_t t[2]; fd = dup(fd_orig); if( fd<0 ) return; memset(d, 0, sizeof(d)); |
︙ | ︙ | |||
1748 1749 1750 1751 1752 1753 1754 | ** ** If called with allocateFlag<0, check to see if the thread specific ** data is allocated and is all zero. If it is then deallocate it. ** Return a pointer to the thread specific data or NULL if it is ** unallocated or gets deallocated. */ ThreadData *sqlite3UnixThreadSpecificData(int allocateFlag){ | | > | 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 | ** ** If called with allocateFlag<0, check to see if the thread specific ** data is allocated and is all zero. If it is then deallocate it. ** Return a pointer to the thread specific data or NULL if it is ** unallocated or gets deallocated. */ ThreadData *sqlite3UnixThreadSpecificData(int allocateFlag){ static const ThreadData zeroData = {0}; /* Initializer to silence warnings ** from broken compilers */ #ifdef SQLITE_UNIX_THREADS static pthread_key_t key; static int keyInit = 0; ThreadData *pTsd; if( !keyInit ){ sqlite3OsEnterMutex(); |
︙ | ︙ |
Changes to SQLite.Interop/src/os_win.c.
︙ | ︙ | |||
510 511 512 513 514 515 516 | exists = GetFileAttributesA(zFilename) != 0xffffffff; #endif } return exists; } /* Forward declaration */ | | | 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 | exists = GetFileAttributesA(zFilename) != 0xffffffff; #endif } return exists; } /* Forward declaration */ static int allocateWinFile(winFile *pInit, OsFile **pId); /* ** Attempt to open a file for both reading and writing. If that ** fails, try opening it read-only. If the file does not exist, ** try to create it. ** ** On success, a handle for the open file is written to *id |
︙ | ︙ | |||
1285 1286 1287 1288 1289 1290 1291 | }; /* ** Allocate memory for an OsFile. Initialize the new OsFile ** to the value given in pInit and return a pointer to the new ** OsFile. If we run out of memory, close the file and return NULL. */ | | | 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 | }; /* ** Allocate memory for an OsFile. Initialize the new OsFile ** to the value given in pInit and return a pointer to the new ** OsFile. If we run out of memory, close the file and return NULL. */ static int allocateWinFile(winFile *pInit, OsFile **pId){ winFile *pNew; pNew = sqliteMalloc( sizeof(*pNew) ); if( pNew==0 ){ CloseHandle(pInit->h); #if OS_WINCE sqliteFree(pInit->zDeleteOnClose); #endif |
︙ | ︙ |
Changes to SQLite.Interop/src/pager.c.
︙ | ︙ | |||
14 15 16 17 18 19 20 | ** The pager is used to access a database disk file. It implements ** atomic commit and rollback through the use of a journal file that ** is separate from the database file. The pager also implements file ** locking to prevent two processes from writing the same database ** file simultaneously, or one process from reading the database while ** another is writing. ** | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ** The pager is used to access a database disk file. It implements ** atomic commit and rollback through the use of a journal file that ** is separate from the database file. The pager also implements file ** locking to prevent two processes from writing the same database ** file simultaneously, or one process from reading the database while ** another is writing. ** ** @(#) $Id: pager.c,v 1.19 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef SQLITE_OMIT_DISKIO #include "sqliteInt.h" #include "os.h" #include "pager.h" #include <assert.h> #include <string.h> |
︙ | ︙ | |||
1440 1441 1442 1443 1444 1445 1446 | while( pPager->journalOff <= (hdrOff-(pPager->pageSize+8)) ){ rc = pager_playback_one_page(pPager, pPager->jfd, 1); assert( rc!=SQLITE_DONE ); if( rc!=SQLITE_OK ) goto end_stmt_playback; } while( pPager->journalOff < szJ ){ | | | | | | | 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 | while( pPager->journalOff <= (hdrOff-(pPager->pageSize+8)) ){ rc = pager_playback_one_page(pPager, pPager->jfd, 1); assert( rc!=SQLITE_DONE ); if( rc!=SQLITE_OK ) goto end_stmt_playback; } while( pPager->journalOff < szJ ){ u32 nJRec; /* Number of Journal Records */ u32 dummy; rc = readJournalHdr(pPager, szJ, &nJRec, &dummy); if( rc!=SQLITE_OK ){ assert( rc!=SQLITE_DONE ); goto end_stmt_playback; } if( nJRec==0 ){ nJRec = (szJ - pPager->journalOff) / (pPager->pageSize+8); } for(i=nJRec-1; i>=0 && pPager->journalOff < szJ; i--){ rc = pager_playback_one_page(pPager, pPager->jfd, 1); assert( rc!=SQLITE_DONE ); if( rc!=SQLITE_OK ) goto end_stmt_playback; } } pPager->journalOff = szJ; |
︙ | ︙ | |||
1774 1775 1776 1777 1778 1779 1780 1781 1782 | ** these cases sqlite3OsRead() will return an error, to which the correct ** response is to zero the memory at pDest and continue. A real IO error ** will presumably recur and be picked up later (Todo: Think about this). */ void sqlite3pager_read_fileheader(Pager *pPager, int N, unsigned char *pDest){ memset(pDest, 0, N); if( MEMDB==0 ){ sqlite3OsSeek(pPager->fd, 0); sqlite3OsRead(pPager->fd, pDest, N); | > | | 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 | ** these cases sqlite3OsRead() will return an error, to which the correct ** response is to zero the memory at pDest and continue. A real IO error ** will presumably recur and be picked up later (Todo: Think about this). */ void sqlite3pager_read_fileheader(Pager *pPager, int N, unsigned char *pDest){ memset(pDest, 0, N); if( MEMDB==0 ){ disable_simulated_io_errors(); sqlite3OsSeek(pPager->fd, 0); sqlite3OsRead(pPager->fd, pDest, N); enable_simulated_io_errors(); } } /* ** Return the total number of pages in the disk file associated with ** pPager. ** |
︙ | ︙ | |||
2555 2556 2557 2558 2559 2560 2561 | } } /* If a journal file exists, and there is no RESERVED lock on the ** database file, then it either needs to be played back or deleted. */ if( hasHotJournal(pPager) ){ | < < | 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 | } } /* If a journal file exists, and there is no RESERVED lock on the ** database file, then it either needs to be played back or deleted. */ if( hasHotJournal(pPager) ){ /* Get an EXCLUSIVE lock on the database file. At this point it is ** important that a RESERVED lock is not obtained on the way to the ** EXCLUSIVE lock. If it were, another process might open the ** database file, detect the RESERVED lock, and conclude that the ** database is safe to read while this process is still rolling it ** back. ** |
︙ | ︙ | |||
2676 2677 2678 2679 2680 2681 2682 | rc = pPager->errCode; return rc; } /* Populate the page with data, either by reading from the database ** file, or by setting the entire page to zero. */ | | < | 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 | rc = pPager->errCode; return rc; } /* Populate the page with data, either by reading from the database ** file, or by setting the entire page to zero. */ if( sqlite3pager_pagecount(pPager)<(int)pgno || MEMDB ){ memset(PGHDR_TO_DATA(pPg), 0, pPager->pageSize); }else{ assert( MEMDB==0 ); rc = sqlite3OsSeek(pPager->fd, (pgno-1)*(i64)pPager->pageSize); if( rc==SQLITE_OK ){ rc = sqlite3OsRead(pPager->fd, PGHDR_TO_DATA(pPg), pPager->pageSize); } TRACE3("FETCH %d page %d\n", PAGERID(pPager), pPg->pgno); |
︙ | ︙ |
Changes to SQLite.Interop/src/pager.h.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the sqlite page cache ** subsystem. The page cache subsystem reads and writes a file a page ** at a time and provides a journal for rollback. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the sqlite page cache ** subsystem. The page cache subsystem reads and writes a file a page ** at a time and provides a journal for rollback. ** ** @(#) $Id: pager.h,v 1.18 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef _PAGER_H_ #define _PAGER_H_ /* ** The default size of a database page. |
︙ | ︙ |
Changes to SQLite.Interop/src/parse.c.
︙ | ︙ | |||
114 115 116 117 118 119 120 | int yy479; } YYMINORTYPE; #define YYSTACKDEPTH 100 #define sqlite3ParserARG_SDECL Parse *pParse; #define sqlite3ParserARG_PDECL ,Parse *pParse #define sqlite3ParserARG_FETCH Parse *pParse = yypParser->pParse #define sqlite3ParserARG_STORE yypParser->pParse = pParse | | | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | int yy479; } YYMINORTYPE; #define YYSTACKDEPTH 100 #define sqlite3ParserARG_SDECL Parse *pParse; #define sqlite3ParserARG_PDECL ,Parse *pParse #define sqlite3ParserARG_FETCH Parse *pParse = yypParser->pParse #define sqlite3ParserARG_STORE yypParser->pParse = pParse #define YYNSTATE 560 #define YYNRULE 295 #define YYERRORSYMBOL 137 #define YYERRSYMDT yy479 #define YYFALLBACK 1 #define YY_NO_ACTION (YYNSTATE+YYNRULE+2) #define YY_ACCEPT_ACTION (YYNSTATE+YYNRULE+1) #define YY_ERROR_ACTION (YYNSTATE+YYNRULE) |
︙ | ︙ | |||
171 172 173 174 175 176 177 | ** yy_shift_ofst[] For each state, the offset into yy_action for ** shifting terminals. ** yy_reduce_ofst[] For each state, the offset into yy_action for ** shifting non-terminals after a reduce. ** yy_default[] Default action for each state. */ static const YYACTIONTYPE yy_action[] = { | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > | | < | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | < | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 | ** yy_shift_ofst[] For each state, the offset into yy_action for ** shifting terminals. ** yy_reduce_ofst[] For each state, the offset into yy_action for ** shifting non-terminals after a reduce. ** yy_default[] Default action for each state. */ static const YYACTIONTYPE yy_action[] = { /* 0 */ 279, 68, 283, 70, 148, 166, 546, 419, 62, 62, /* 10 */ 62, 62, 202, 64, 64, 64, 64, 65, 65, 66, /* 20 */ 66, 66, 67, 67, 548, 549, 432, 69, 64, 64, /* 30 */ 64, 64, 65, 65, 66, 66, 66, 67, 68, 454, /* 40 */ 70, 148, 499, 61, 59, 287, 440, 441, 437, 437, /* 50 */ 63, 63, 62, 62, 62, 62, 501, 64, 64, 64, /* 60 */ 64, 65, 65, 66, 66, 66, 67, 279, 371, 283, /* 70 */ 419, 2, 377, 80, 158, 115, 220, 304, 225, 305, /* 80 */ 170, 245, 856, 119, 559, 504, 204, 2, 246, 389, /* 90 */ 496, 219, 22, 432, 514, 21, 419, 58, 493, 171, /* 100 */ 64, 64, 64, 64, 65, 65, 66, 66, 66, 67, /* 110 */ 61, 59, 287, 440, 441, 437, 437, 63, 63, 62, /* 120 */ 62, 62, 62, 512, 64, 64, 64, 64, 65, 65, /* 130 */ 66, 66, 66, 67, 279, 378, 379, 175, 202, 377, /* 140 */ 330, 333, 334, 220, 304, 225, 305, 170, 245, 203, /* 150 */ 146, 357, 335, 281, 377, 246, 55, 301, 373, 419, /* 160 */ 432, 505, 92, 200, 530, 66, 66, 66, 67, 525, /* 170 */ 192, 65, 65, 66, 66, 66, 67, 61, 59, 287, /* 180 */ 440, 441, 437, 437, 63, 63, 62, 62, 62, 62, /* 190 */ 433, 64, 64, 64, 64, 65, 65, 66, 66, 66, /* 200 */ 67, 279, 378, 379, 411, 431, 110, 226, 427, 205, /* 210 */ 435, 436, 308, 358, 261, 260, 175, 378, 379, 330, /* 220 */ 333, 334, 372, 369, 202, 511, 480, 432, 547, 362, /* 230 */ 466, 335, 510, 500, 410, 41, 276, 414, 434, 429, /* 240 */ 503, 162, 233, 527, 61, 59, 287, 440, 441, 437, /* 250 */ 437, 63, 63, 62, 62, 62, 62, 319, 64, 64, /* 260 */ 64, 64, 65, 65, 66, 66, 66, 67, 279, 472, /* 270 */ 416, 416, 416, 308, 322, 236, 308, 68, 308, 70, /* 280 */ 148, 1, 308, 793, 308, 377, 68, 153, 70, 148, /* 290 */ 149, 377, 325, 282, 432, 410, 35, 551, 410, 35, /* 300 */ 410, 36, 427, 205, 410, 35, 410, 35, 286, 422, /* 310 */ 423, 61, 59, 287, 440, 441, 437, 437, 63, 63, /* 320 */ 62, 62, 62, 62, 411, 64, 64, 64, 64, 65, /* 330 */ 65, 66, 66, 66, 67, 308, 504, 466, 290, 255, /* 340 */ 279, 324, 485, 147, 237, 388, 21, 288, 378, 379, /* 350 */ 451, 419, 232, 451, 378, 379, 308, 410, 28, 451, /* 360 */ 175, 450, 486, 330, 333, 334, 432, 215, 347, 145, /* 370 */ 513, 204, 350, 186, 168, 335, 238, 411, 410, 41, /* 380 */ 256, 462, 76, 61, 59, 287, 440, 441, 437, 437, /* 390 */ 63, 63, 62, 62, 62, 62, 309, 64, 64, 64, /* 400 */ 64, 65, 65, 66, 66, 66, 67, 411, 411, 186, /* 410 */ 396, 308, 279, 291, 419, 338, 476, 308, 390, 234, /* 420 */ 169, 154, 397, 475, 396, 327, 493, 311, 422, 423, /* 430 */ 444, 377, 356, 410, 49, 398, 397, 394, 432, 410, /* 440 */ 49, 502, 171, 411, 429, 312, 162, 395, 351, 398, /* 450 */ 497, 318, 470, 352, 79, 61, 59, 287, 440, 441, /* 460 */ 437, 437, 63, 63, 62, 62, 62, 62, 356, 64, /* 470 */ 64, 64, 64, 65, 65, 66, 66, 66, 67, 279, /* 480 */ 298, 445, 376, 479, 532, 405, 299, 11, 504, 352, /* 490 */ 204, 377, 406, 377, 378, 379, 281, 556, 21, 491, /* 500 */ 491, 246, 560, 372, 369, 432, 392, 393, 314, 123, /* 510 */ 443, 443, 166, 289, 419, 314, 116, 443, 443, 251, /* 520 */ 264, 463, 61, 59, 287, 440, 441, 437, 437, 63, /* 530 */ 63, 62, 62, 62, 62, 292, 64, 64, 64, 64, /* 540 */ 65, 65, 66, 66, 66, 67, 279, 459, 328, 474, /* 550 */ 498, 308, 202, 308, 378, 379, 378, 379, 181, 131, /* 560 */ 179, 265, 308, 5, 308, 363, 314, 355, 443, 443, /* 570 */ 410, 3, 432, 410, 29, 410, 24, 419, 243, 244, /* 580 */ 380, 381, 382, 404, 410, 33, 410, 54, 466, 61, /* 590 */ 59, 287, 440, 441, 437, 437, 63, 63, 62, 62, /* 600 */ 62, 62, 308, 64, 64, 64, 64, 65, 65, 66, /* 610 */ 66, 66, 67, 279, 521, 344, 521, 249, 308, 491, /* 620 */ 308, 470, 308, 470, 410, 25, 308, 240, 308, 314, /* 630 */ 308, 443, 443, 213, 172, 173, 174, 142, 266, 432, /* 640 */ 410, 52, 410, 97, 410, 94, 528, 393, 410, 99, /* 650 */ 410, 100, 410, 111, 212, 255, 61, 59, 287, 440, /* 660 */ 441, 437, 437, 63, 63, 62, 62, 62, 62, 308, /* 670 */ 64, 64, 64, 64, 65, 65, 66, 66, 66, 67, /* 680 */ 279, 308, 345, 188, 297, 91, 308, 491, 308, 415, /* 690 */ 308, 410, 112, 308, 428, 308, 537, 308, 244, 165, /* 700 */ 154, 409, 355, 410, 18, 408, 432, 320, 410, 98, /* 710 */ 410, 34, 410, 95, 313, 410, 53, 410, 113, 410, /* 720 */ 114, 255, 293, 61, 59, 287, 440, 441, 437, 437, /* 730 */ 63, 63, 62, 62, 62, 62, 308, 64, 64, 64, /* 740 */ 64, 65, 65, 66, 66, 66, 67, 279, 308, 491, /* 750 */ 491, 523, 308, 452, 308, 522, 308, 461, 410, 26, /* 760 */ 308, 75, 539, 77, 308, 460, 244, 346, 214, 465, /* 770 */ 410, 37, 469, 432, 410, 38, 410, 27, 410, 39, /* 780 */ 242, 82, 410, 40, 294, 296, 410, 42, 438, 329, /* 790 */ 61, 59, 287, 440, 441, 437, 437, 63, 63, 62, /* 800 */ 62, 62, 62, 308, 64, 64, 64, 64, 65, 65, /* 810 */ 66, 66, 66, 67, 279, 308, 409, 190, 221, 308, /* 820 */ 408, 308, 152, 308, 159, 410, 43, 308, 244, 244, /* 830 */ 222, 20, 308, 139, 425, 425, 481, 410, 44, 482, /* 840 */ 432, 410, 30, 410, 31, 410, 45, 487, 461, 410, /* 850 */ 46, 411, 506, 255, 410, 47, 488, 61, 71, 287, /* 860 */ 440, 441, 437, 437, 63, 63, 62, 62, 62, 62, /* 870 */ 308, 64, 64, 64, 64, 65, 65, 66, 66, 66, /* 880 */ 67, 279, 308, 401, 402, 250, 308, 193, 308, 420, /* 890 */ 308, 23, 410, 48, 540, 449, 255, 14, 468, 477, /* 900 */ 167, 14, 484, 483, 410, 32, 252, 432, 410, 12, /* 910 */ 410, 50, 410, 51, 255, 255, 594, 255, 255, 150, /* 920 */ 489, 411, 123, 253, 279, 59, 287, 440, 441, 437, /* 930 */ 437, 63, 63, 62, 62, 62, 62, 541, 64, 64, /* 940 */ 64, 64, 65, 65, 66, 66, 66, 67, 254, 248, /* 950 */ 432, 123, 337, 411, 123, 267, 269, 196, 361, 366, /* 960 */ 183, 177, 180, 519, 520, 526, 534, 123, 167, 287, /* 970 */ 440, 441, 437, 437, 63, 63, 62, 62, 62, 62, /* 980 */ 342, 64, 64, 64, 64, 65, 65, 66, 66, 66, /* 990 */ 67, 72, 315, 259, 4, 411, 411, 535, 285, 89, /* 1000 */ 544, 349, 89, 353, 354, 19, 310, 72, 315, 368, /* 1010 */ 4, 386, 262, 263, 285, 223, 545, 270, 364, 273, /* 1020 */ 274, 141, 310, 317, 227, 316, 555, 424, 426, 480, /* 1030 */ 455, 458, 490, 431, 332, 492, 533, 157, 543, 317, /* 1040 */ 375, 383, 384, 385, 8, 302, 303, 391, 284, 431, /* 1050 */ 404, 399, 74, 73, 224, 403, 407, 82, 323, 321, /* 1060 */ 72, 306, 307, 400, 231, 414, 81, 206, 74, 73, /* 1070 */ 473, 57, 78, 164, 453, 412, 72, 306, 307, 72, /* 1080 */ 315, 414, 4, 228, 202, 229, 285, 235, 230, 456, /* 1090 */ 457, 413, 207, 120, 310, 83, 326, 102, 416, 416, /* 1100 */ 416, 417, 418, 13, 239, 495, 467, 241, 277, 208, /* 1110 */ 471, 317, 494, 210, 416, 416, 416, 417, 418, 13, /* 1120 */ 211, 431, 156, 278, 339, 507, 508, 216, 217, 218, /* 1130 */ 106, 509, 515, 178, 343, 84, 341, 182, 517, 456, /* 1140 */ 74, 73, 86, 198, 518, 271, 257, 184, 72, 306, /* 1150 */ 307, 348, 272, 414, 118, 529, 187, 127, 536, 359, /* 1160 */ 128, 136, 129, 542, 195, 130, 530, 133, 300, 552, /* 1170 */ 553, 194, 137, 197, 431, 90, 554, 557, 96, 209, /* 1180 */ 101, 374, 387, 117, 201, 56, 416, 416, 416, 417, /* 1190 */ 418, 13, 93, 143, 144, 595, 596, 109, 160, 161, /* 1200 */ 60, 439, 500, 421, 430, 442, 414, 138, 446, 151, /* 1210 */ 6, 447, 155, 448, 163, 360, 268, 260, 15, 7, /* 1220 */ 14, 280, 121, 464, 122, 478, 202, 103, 104, 331, /* 1230 */ 247, 85, 105, 336, 222, 176, 340, 140, 516, 416, /* 1240 */ 416, 416, 124, 295, 125, 167, 524, 258, 107, 185, /* 1250 */ 365, 9, 531, 10, 126, 189, 16, 538, 191, 132, /* 1260 */ 134, 87, 88, 135, 17, 108, 275, 550, 367, 199, /* 1270 */ 370, 536, 558, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 16, 216, 16, 218, 219, 21, 146, 23, 68, 69, /* 10 */ 70, 71, 109, 73, 74, 75, 76, 77, 78, 79, /* 20 */ 80, 81, 82, 82, 164, 165, 42, 72, 73, 74, /* 30 */ 75, 76, 77, 78, 79, 80, 81, 82, 216, 217, /* 40 */ 218, 219, 168, 59, 60, 61, 62, 63, 64, 65, /* 50 */ 66, 67, 68, 69, 70, 71, 168, 73, 74, 75, /* 60 */ 76, 77, 78, 79, 80, 81, 82, 16, 140, 16, /* 70 */ 86, 143, 23, 22, 88, 89, 90, 91, 92, 93, /* 80 */ 94, 95, 138, 139, 140, 146, 226, 143, 102, 166, /* 90 */ 167, 152, 19, 42, 155, 156, 23, 46, 175, 43, /* 100 */ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, /* 110 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, /* 120 */ 69, 70, 71, 180, 73, 74, 75, 76, 77, 78, /* 130 */ 79, 80, 81, 82, 16, 86, 87, 88, 109, 23, /* 140 */ 91, 92, 93, 90, 91, 92, 93, 94, 95, 191, /* 150 */ 22, 122, 103, 97, 23, 102, 198, 141, 142, 86, /* 160 */ 42, 180, 44, 147, 49, 79, 80, 81, 82, 18, /* 170 */ 154, 77, 78, 79, 80, 81, 82, 59, 60, 61, /* 180 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, /* 190 */ 42, 73, 74, 75, 76, 77, 78, 79, 80, 81, /* 200 */ 82, 16, 86, 87, 188, 58, 21, 189, 77, 78, /* 210 */ 62, 63, 146, 98, 99, 100, 88, 86, 87, 91, /* 220 */ 92, 93, 1, 2, 109, 175, 176, 42, 97, 213, /* 230 */ 160, 103, 182, 86, 168, 169, 157, 90, 90, 160, /* 240 */ 161, 162, 146, 92, 59, 60, 61, 62, 63, 64, /* 250 */ 65, 66, 67, 68, 69, 70, 71, 185, 73, 74, /* 260 */ 75, 76, 77, 78, 79, 80, 81, 82, 16, 199, /* 270 */ 123, 124, 125, 146, 208, 209, 146, 216, 146, 218, /* 280 */ 219, 19, 146, 132, 146, 23, 216, 146, 218, 219, /* 290 */ 154, 23, 146, 149, 42, 168, 169, 236, 168, 169, /* 300 */ 168, 169, 77, 78, 168, 169, 168, 169, 163, 164, /* 310 */ 165, 59, 60, 61, 62, 63, 64, 65, 66, 67, /* 320 */ 68, 69, 70, 71, 188, 73, 74, 75, 76, 77, /* 330 */ 78, 79, 80, 81, 82, 146, 146, 160, 211, 146, /* 340 */ 16, 211, 30, 154, 146, 155, 156, 211, 86, 87, /* 350 */ 223, 23, 220, 223, 86, 87, 146, 168, 169, 223, /* 360 */ 88, 223, 50, 91, 92, 93, 42, 144, 224, 179, /* 370 */ 180, 226, 228, 154, 154, 103, 199, 188, 168, 169, /* 380 */ 187, 113, 130, 59, 60, 61, 62, 63, 64, 65, /* 390 */ 66, 67, 68, 69, 70, 71, 146, 73, 74, 75, /* 400 */ 76, 77, 78, 79, 80, 81, 82, 188, 188, 154, /* 410 */ 12, 146, 16, 101, 86, 16, 20, 146, 167, 209, /* 420 */ 200, 201, 24, 20, 12, 205, 175, 163, 164, 165, /* 430 */ 20, 23, 213, 168, 169, 37, 24, 39, 42, 168, /* 440 */ 169, 159, 43, 188, 160, 161, 162, 49, 229, 37, /* 450 */ 168, 39, 146, 234, 130, 59, 60, 61, 62, 63, /* 460 */ 64, 65, 66, 67, 68, 69, 70, 71, 213, 73, /* 470 */ 74, 75, 76, 77, 78, 79, 80, 81, 82, 16, /* 480 */ 215, 20, 146, 20, 229, 27, 215, 19, 146, 234, /* 490 */ 226, 23, 34, 23, 86, 87, 97, 155, 156, 146, /* 500 */ 146, 102, 0, 1, 2, 42, 184, 185, 105, 22, /* 510 */ 107, 108, 21, 207, 23, 105, 146, 107, 108, 14, /* 520 */ 14, 113, 59, 60, 61, 62, 63, 64, 65, 66, /* 530 */ 67, 68, 69, 70, 71, 181, 73, 74, 75, 76, /* 540 */ 77, 78, 79, 80, 81, 82, 16, 22, 146, 79, /* 550 */ 20, 146, 109, 146, 86, 87, 86, 87, 53, 53, /* 560 */ 55, 55, 146, 190, 146, 122, 105, 146, 107, 108, /* 570 */ 168, 169, 42, 168, 169, 168, 169, 86, 225, 225, /* 580 */ 7, 8, 9, 96, 168, 169, 168, 169, 160, 59, /* 590 */ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, /* 600 */ 70, 71, 146, 73, 74, 75, 76, 77, 78, 79, /* 610 */ 80, 81, 82, 16, 98, 99, 100, 20, 146, 146, /* 620 */ 146, 146, 146, 146, 168, 169, 146, 199, 146, 105, /* 630 */ 146, 107, 108, 212, 98, 99, 100, 112, 132, 42, /* 640 */ 168, 169, 168, 169, 168, 169, 184, 185, 168, 169, /* 650 */ 168, 169, 168, 169, 181, 146, 59, 60, 61, 62, /* 660 */ 63, 64, 65, 66, 67, 68, 69, 70, 71, 146, /* 670 */ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, /* 680 */ 16, 146, 207, 22, 207, 21, 146, 146, 146, 146, /* 690 */ 146, 168, 169, 146, 160, 146, 187, 146, 225, 200, /* 700 */ 201, 106, 146, 168, 169, 110, 42, 146, 168, 169, /* 710 */ 168, 169, 168, 169, 16, 168, 169, 168, 169, 168, /* 720 */ 169, 146, 181, 59, 60, 61, 62, 63, 64, 65, /* 730 */ 66, 67, 68, 69, 70, 71, 146, 73, 74, 75, /* 740 */ 76, 77, 78, 79, 80, 81, 82, 16, 146, 146, /* 750 */ 146, 25, 146, 146, 146, 29, 146, 22, 168, 169, /* 760 */ 146, 129, 187, 131, 146, 202, 225, 41, 212, 146, /* 770 */ 168, 169, 146, 42, 168, 169, 168, 169, 168, 169, /* 780 */ 146, 120, 168, 169, 181, 181, 168, 169, 90, 79, /* 790 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, /* 800 */ 69, 70, 71, 146, 73, 74, 75, 76, 77, 78, /* 810 */ 79, 80, 81, 82, 16, 146, 106, 154, 90, 146, /* 820 */ 110, 146, 87, 146, 19, 168, 169, 146, 225, 225, /* 830 */ 102, 19, 146, 21, 123, 124, 146, 168, 169, 177, /* 840 */ 42, 168, 169, 168, 169, 168, 169, 177, 113, 168, /* 850 */ 169, 188, 146, 146, 168, 169, 177, 59, 60, 61, /* 860 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, /* 870 */ 146, 73, 74, 75, 76, 77, 78, 79, 80, 81, /* 880 */ 82, 16, 146, 7, 8, 146, 146, 154, 146, 20, /* 890 */ 146, 22, 168, 169, 187, 20, 146, 22, 20, 20, /* 900 */ 22, 22, 89, 90, 168, 169, 146, 42, 168, 169, /* 910 */ 168, 169, 168, 169, 146, 146, 111, 146, 146, 154, /* 920 */ 20, 188, 22, 146, 16, 60, 61, 62, 63, 64, /* 930 */ 65, 66, 67, 68, 69, 70, 71, 187, 73, 74, /* 940 */ 75, 76, 77, 78, 79, 80, 81, 82, 146, 20, /* 950 */ 42, 22, 20, 188, 22, 187, 187, 19, 187, 187, /* 960 */ 230, 154, 154, 51, 52, 20, 20, 22, 22, 61, /* 970 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, /* 980 */ 231, 73, 74, 75, 76, 77, 78, 79, 80, 81, /* 990 */ 82, 16, 17, 146, 19, 188, 188, 20, 23, 22, /* 1000 */ 20, 146, 22, 146, 146, 67, 31, 16, 17, 237, /* 1010 */ 19, 148, 146, 146, 23, 171, 146, 146, 146, 146, /* 1020 */ 146, 190, 31, 48, 192, 222, 146, 227, 227, 176, /* 1030 */ 171, 171, 171, 58, 172, 171, 193, 6, 193, 48, /* 1040 */ 145, 145, 145, 145, 22, 153, 97, 170, 40, 58, /* 1050 */ 96, 170, 77, 78, 170, 172, 170, 120, 117, 115, /* 1060 */ 85, 86, 87, 178, 196, 90, 118, 221, 77, 78, /* 1070 */ 79, 119, 129, 111, 151, 188, 85, 86, 87, 16, /* 1080 */ 17, 90, 19, 193, 109, 194, 23, 95, 195, 23, /* 1090 */ 159, 197, 210, 151, 31, 97, 114, 19, 123, 124, /* 1100 */ 125, 126, 127, 128, 203, 178, 204, 203, 173, 210, /* 1110 */ 204, 48, 159, 210, 123, 124, 125, 126, 127, 128, /* 1120 */ 210, 58, 5, 173, 15, 170, 170, 10, 11, 12, /* 1130 */ 13, 170, 151, 150, 38, 19, 151, 151, 151, 23, /* 1140 */ 77, 78, 129, 26, 233, 28, 232, 150, 85, 86, /* 1150 */ 87, 151, 35, 90, 59, 183, 183, 19, 193, 15, /* 1160 */ 186, 214, 186, 193, 47, 186, 49, 183, 151, 33, /* 1170 */ 151, 54, 214, 56, 58, 235, 151, 136, 158, 174, /* 1180 */ 174, 1, 20, 32, 44, 19, 123, 124, 125, 126, /* 1190 */ 127, 128, 235, 77, 78, 111, 111, 238, 111, 111, /* 1200 */ 19, 90, 86, 20, 20, 106, 90, 19, 11, 19, /* 1210 */ 116, 20, 111, 20, 22, 98, 99, 100, 22, 116, /* 1220 */ 22, 104, 19, 113, 20, 20, 109, 19, 19, 44, /* 1230 */ 20, 19, 19, 44, 102, 94, 16, 21, 17, 123, /* 1240 */ 124, 125, 97, 36, 45, 22, 45, 132, 19, 97, /* 1250 */ 133, 5, 11, 1, 101, 121, 19, 17, 112, 112, /* 1260 */ 101, 67, 67, 121, 19, 14, 135, 20, 57, 134, /* 1270 */ 3, 239, 4, }; #define YY_SHIFT_USE_DFLT (-98) #define YY_SHIFT_MAX 370 static const short yy_shift_ofst[] = { /* 0 */ 221, 975, 1117, -16, 975, 1063, 1063, 1063, 49, 115, /* 10 */ 115, -97, 118, 1063, 1063, 1063, 1063, 1063, -45, 131, /* 20 */ 116, 328, 225, 225, 51, 185, 252, 324, 396, 463, /* 30 */ 530, 597, 664, 731, 798, 731, 731, 731, 731, 731, /* 40 */ 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, /* 50 */ 731, 731, 865, 908, 908, 991, 1063, 1063, 1063, 1063, /* 60 */ 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, /* 70 */ 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, /* 80 */ 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, /* 90 */ 1063, 1063, 1063, 1063, -60, -60, -14, 27, 27, 94, /* 100 */ 86, 399, 116, 116, 116, 116, 151, 116, 116, 116, /* 110 */ 328, -59, -98, -98, -98, 1116, 53, 398, 398, 502, /* 120 */ 491, 116, 491, 116, 116, 116, 116, 116, 116, 116, /* 130 */ 116, 116, 116, 116, 116, 116, 29, 443, -97, -97, /* 140 */ -97, -98, -98, 147, 147, 128, 272, 403, 262, 410, /* 150 */ 461, 412, 268, 408, 468, 470, 573, 116, 116, 710, /* 160 */ 116, 116, 73, 116, 116, 735, 116, 116, 524, 735, /* 170 */ 116, 116, 312, 312, 312, 116, 116, 524, 116, 116, /* 180 */ 524, 116, 726, 516, 116, 116, 524, 116, 116, 116, /* 190 */ 524, 116, 524, 524, 116, 116, 116, 116, 116, 116, /* 200 */ 812, 458, 595, 525, 711, 711, 632, 458, 458, 56, /* 210 */ 458, 458, 487, 661, 661, 1031, 1031, 1031, 1031, 1022, /* 220 */ 949, 949, 1008, 949, 954, 949, -97, 937, 941, 948, /* 230 */ 944, 952, 943, 962, 992, 1066, 992, 962, 998, 982, /* 240 */ 998, 982, 1078, 992, 992, 1066, 1008, 949, 949, 949, /* 250 */ 1078, 1109, 962, 962, 962, 962, 1096, 1013, 1109, 962, /* 260 */ 1095, 1095, 1138, 937, 1144, 1144, 1144, 937, 1095, 1138, /* 270 */ 962, 1136, 1136, 962, 962, 1041, -98, -98, -98, 148, /* 280 */ 506, 536, 505, 728, 876, 805, 869, 698, 875, 878, /* 290 */ 879, 813, 900, 929, 932, 912, 945, 946, 977, 980, /* 300 */ 938, 1180, 1162, 1151, 1140, 1166, 1084, 1085, 1087, 1088, /* 310 */ 1181, 1183, 1184, 1111, 1099, 1188, 1197, 1190, 1191, 1192, /* 320 */ 1193, 1094, 1196, 1103, 1198, 1110, 1203, 1204, 1101, 1205, /* 330 */ 1185, 1208, 1210, 1209, 1212, 1189, 1213, 1141, 1132, 1220, /* 340 */ 1221, 1216, 1145, 1207, 1199, 1223, 1201, 1115, 1152, 1229, /* 350 */ 1246, 1241, 1252, 1153, 1194, 1195, 1134, 1237, 1146, 1240, /* 360 */ 1147, 1159, 1142, 1245, 1247, 1251, 1211, 1135, 1131, 1267, /* 370 */ 1268, }; #define YY_REDUCE_USE_DFLT (-216) #define YY_REDUCE_MAX 278 static const short yy_reduce_ofst[] = { /* 0 */ -56, 136, 16, 70, 189, 127, 66, 130, 190, 219, /* 10 */ 255, 220, 61, 132, 138, 210, 265, 271, -178, -140, /* 20 */ -61, 79, 145, 264, -215, -215, -215, -215, -215, -215, /* 30 */ -215, -215, -215, -215, -215, -215, -215, -215, -215, -215, /* 40 */ -215, -215, -215, -215, -215, -215, -215, -215, -215, -215, /* 50 */ -215, -215, -215, -215, -215, 402, 405, 407, 416, 418, /* 60 */ 456, 472, 474, 476, 480, 482, 484, 523, 535, 540, /* 70 */ 542, 544, 547, 549, 551, 590, 602, 606, 608, 610, /* 80 */ 614, 618, 657, 669, 673, 675, 677, 681, 686, 724, /* 90 */ 736, 740, 742, 744, -215, -215, -77, -215, -215, -215, /* 100 */ -215, 50, 354, 473, 541, 603, 144, 604, 772, 342, /* 110 */ 284, -215, -215, -215, -215, 282, 251, 322, 462, -72, /* 120 */ 177, 306, 428, 353, 193, 475, 421, 477, 509, 575, /* 130 */ 707, 750, 768, 771, 556, 769, 663, 733, 765, 807, /* 140 */ 808, -42, 499, -126, -112, -57, -19, 18, 96, 18, /* 150 */ 18, 72, 141, 146, 198, 250, 223, 336, 370, 373, /* 160 */ 250, 543, 534, 561, 607, 563, 623, 626, 18, 563, /* 170 */ 634, 690, 662, 670, 679, 706, 739, 18, 760, 777, /* 180 */ 18, 802, 730, 749, 847, 855, 18, 857, 858, 866, /* 190 */ 18, 867, 18, 18, 870, 871, 872, 873, 874, 880, /* 200 */ 863, 844, 831, 832, 800, 801, 803, 859, 860, 853, /* 210 */ 861, 864, 862, 843, 845, 895, 896, 897, 898, 892, /* 220 */ 877, 881, 885, 884, 883, 886, 887, 890, 891, 893, /* 230 */ 868, 894, 846, 923, 882, 931, 899, 942, 901, 902, /* 240 */ 904, 906, 935, 903, 910, 953, 927, 955, 956, 961, /* 250 */ 950, 983, 981, 985, 986, 987, 914, 911, 997, 1000, /* 260 */ 972, 973, 947, 965, 974, 976, 979, 970, 984, 958, /* 270 */ 1017, 940, 957, 1019, 1025, 959, 1020, 1005, 1006, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 566, 790, 855, 681, 855, 790, 855, 790, 855, 828, /* 10 */ 828, 685, 841, 786, 790, 855, 855, 855, 761, 812, /* 20 */ 855, 597, 812, 812, 716, 855, 855, 855, 855, 855, /* 30 */ 855, 855, 855, 717, 855, 789, 785, 781, 783, 782, /* 40 */ 718, 705, 714, 721, 697, 826, 723, 724, 729, 730, /* 50 */ 842, 845, 751, 767, 750, 855, 855, 855, 855, 855, /* 60 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 70 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 80 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 90 */ 855, 855, 855, 855, 753, 772, 590, 752, 760, 754, /* 100 */ 755, 650, 855, 855, 855, 855, 585, 855, 855, 855, /* 110 */ 855, 756, 757, 768, 769, 855, 855, 855, 855, 566, /* 120 */ 681, 855, 681, 855, 855, 855, 855, 855, 855, 855, /* 130 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 140 */ 855, 675, 685, 855, 855, 641, 855, 855, 855, 855, /* 150 */ 855, 855, 855, 855, 855, 855, 573, 571, 855, 673, /* 160 */ 855, 855, 599, 855, 855, 683, 855, 855, 688, 689, /* 170 */ 855, 855, 855, 855, 855, 855, 855, 587, 855, 855, /* 180 */ 662, 855, 818, 855, 855, 855, 833, 855, 855, 855, /* 190 */ 831, 855, 664, 726, 800, 855, 855, 846, 848, 855, /* 200 */ 855, 708, 673, 682, 855, 855, 784, 708, 708, 620, /* 210 */ 708, 708, 623, 720, 720, 570, 570, 570, 570, 640, /* 220 */ 652, 652, 637, 652, 623, 652, 855, 720, 711, 713, /* 230 */ 701, 715, 855, 690, 709, 855, 709, 690, 698, 700, /* 240 */ 698, 700, 794, 709, 709, 855, 637, 652, 652, 652, /* 250 */ 794, 582, 690, 690, 690, 690, 822, 825, 582, 690, /* 260 */ 654, 654, 731, 720, 661, 661, 661, 720, 654, 731, /* 270 */ 690, 844, 844, 690, 690, 853, 607, 625, 625, 855, /* 280 */ 855, 855, 855, 855, 855, 738, 855, 855, 855, 855, /* 290 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 300 */ 807, 855, 855, 855, 855, 855, 743, 739, 855, 740, /* 310 */ 855, 855, 855, 855, 667, 855, 855, 855, 855, 855, /* 320 */ 855, 855, 702, 855, 712, 855, 855, 855, 855, 855, /* 330 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 340 */ 855, 855, 855, 855, 820, 821, 855, 855, 855, 855, /* 350 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 360 */ 855, 855, 855, 855, 855, 855, 852, 855, 855, 567, /* 370 */ 855, 561, 564, 563, 565, 569, 572, 594, 595, 596, /* 380 */ 574, 575, 576, 577, 578, 579, 580, 586, 588, 606, /* 390 */ 608, 615, 653, 656, 657, 658, 836, 837, 838, 616, /* 400 */ 635, 638, 639, 617, 624, 706, 707, 618, 671, 672, /* 410 */ 735, 665, 666, 670, 737, 741, 742, 744, 745, 593, /* 420 */ 600, 601, 604, 605, 808, 810, 809, 811, 603, 602, /* 430 */ 746, 749, 758, 759, 765, 771, 774, 763, 764, 766, /* 440 */ 770, 773, 668, 669, 777, 779, 780, 834, 835, 775, /* 450 */ 787, 788, 691, 778, 762, 703, 592, 710, 704, 674, /* 460 */ 684, 693, 694, 695, 696, 679, 680, 686, 699, 733, /* 470 */ 734, 687, 676, 677, 678, 776, 736, 747, 748, 619, /* 480 */ 626, 627, 628, 631, 632, 633, 634, 629, 630, 795, /* 490 */ 796, 798, 797, 621, 622, 636, 609, 610, 611, 612, /* 500 */ 743, 613, 614, 598, 591, 642, 645, 646, 647, 648, /* 510 */ 649, 651, 643, 644, 589, 581, 583, 692, 814, 823, /* 520 */ 824, 819, 815, 816, 817, 584, 791, 792, 655, 727, /* 530 */ 728, 813, 827, 829, 732, 830, 832, 659, 660, 663, /* 540 */ 799, 839, 719, 722, 725, 801, 802, 803, 804, 805, /* 550 */ 806, 840, 843, 847, 849, 850, 851, 854, 568, 562, }; #define YY_SZ_ACTTAB (sizeof(yy_action)/sizeof(yy_action[0])) /* The next table maps tokens into fallback tokens. If a construct ** like the following: ** ** %fallback ID X Y Z. |
︙ | ︙ | |||
1082 1083 1084 1085 1086 1087 1088 | /* 224 */ "case_else ::=", /* 225 */ "case_operand ::= expr", /* 226 */ "case_operand ::=", /* 227 */ "exprlist ::= exprlist COMMA expritem", /* 228 */ "exprlist ::= expritem", /* 229 */ "expritem ::= expr", /* 230 */ "expritem ::=", | | | 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 | /* 224 */ "case_else ::=", /* 225 */ "case_operand ::= expr", /* 226 */ "case_operand ::=", /* 227 */ "exprlist ::= exprlist COMMA expritem", /* 228 */ "exprlist ::= expritem", /* 229 */ "expritem ::= expr", /* 230 */ "expritem ::=", /* 231 */ "cmd ::= CREATE uniqueflag INDEX ifnotexists nm dbnm ON nm LP idxlist RP", /* 232 */ "uniqueflag ::= UNIQUE", /* 233 */ "uniqueflag ::=", /* 234 */ "idxlist_opt ::=", /* 235 */ "idxlist_opt ::= LP idxlist RP", /* 236 */ "idxlist ::= idxlist COMMA idxitem collate sortorder", /* 237 */ "idxlist ::= idxitem collate sortorder", /* 238 */ "idxitem ::= nm", |
︙ | ︙ | |||
1208 1209 1210 1211 1212 1213 1214 | ** inside the C code. */ case 154: case 188: case 205: #line 368 "parse.y" {sqlite3SelectDelete((yypminor->yy239));} | | | | | | | | | | | | | | | 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 | ** inside the C code. */ case 154: case 188: case 205: #line 368 "parse.y" {sqlite3SelectDelete((yypminor->yy239));} #line 1216 "parse.c" break; case 168: case 169: case 193: case 195: case 203: case 209: case 217: case 220: case 222: case 223: case 233: #line 625 "parse.y" {sqlite3ExprDelete((yypminor->yy178));} #line 1231 "parse.c" break; case 173: case 181: case 191: case 194: case 196: case 198: case 208: case 211: case 212: case 215: case 221: #line 855 "parse.y" {sqlite3ExprListDelete((yypminor->yy462));} #line 1246 "parse.c" break; case 187: case 192: case 200: case 201: #line 496 "parse.y" {sqlite3SrcListDelete((yypminor->yy285));} #line 1254 "parse.c" break; case 197: #line 557 "parse.y" { sqlite3ExprDelete((yypminor->yy270).pLimit); sqlite3ExprDelete((yypminor->yy270).pOffset); } #line 1262 "parse.c" break; case 204: case 207: case 214: #line 513 "parse.y" {sqlite3IdListDelete((yypminor->yy160));} #line 1269 "parse.c" break; case 229: case 234: #line 949 "parse.y" {sqlite3DeleteTriggerStep((yypminor->yy247));} #line 1275 "parse.c" break; case 231: #line 933 "parse.y" {sqlite3IdListDelete((yypminor->yy132).b);} #line 1280 "parse.c" break; case 236: #line 1008 "parse.y" {sqlite3ExprDelete((yypminor->yy292));} #line 1285 "parse.c" break; default: break; /* If no destructor action specified: do nothing */ } } /* ** Pop the parser's stack once. |
︙ | ︙ | |||
1682 1683 1684 1685 1686 1687 1688 | { 222, 0 }, { 220, 1 }, { 220, 0 }, { 211, 3 }, { 211, 1 }, { 223, 1 }, { 223, 0 }, | | | 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 | { 222, 0 }, { 220, 1 }, { 220, 0 }, { 211, 3 }, { 211, 1 }, { 223, 1 }, { 223, 0 }, { 142, 11 }, { 224, 1 }, { 224, 0 }, { 173, 0 }, { 173, 3 }, { 181, 5 }, { 181, 3 }, { 225, 1 }, |
︙ | ︙ | |||
1797 1798 1799 1800 1801 1802 1803 | ** { ... } // User supplied code ** #line <lineno> <thisfile> ** break; */ case 3: #line 95 "parse.y" { sqlite3FinishCoding(pParse); } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | < < | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 | ** { ... } // User supplied code ** #line <lineno> <thisfile> ** break; */ case 3: #line 95 "parse.y" { sqlite3FinishCoding(pParse); } #line 1805 "parse.c" break; case 6: #line 98 "parse.y" { sqlite3BeginParse(pParse, 0); } #line 1810 "parse.c" break; case 7: #line 100 "parse.y" { sqlite3BeginParse(pParse, 1); } #line 1815 "parse.c" break; case 8: #line 101 "parse.y" { sqlite3BeginParse(pParse, 2); } #line 1820 "parse.c" break; case 9: #line 107 "parse.y" {sqlite3BeginTransaction(pParse, yymsp[-1].minor.yy230);} #line 1825 "parse.c" break; case 13: #line 112 "parse.y" {yygotominor.yy230 = TK_DEFERRED;} #line 1830 "parse.c" break; case 14: case 15: case 16: case 107: case 109: #line 113 "parse.y" {yygotominor.yy230 = yymsp[0].major;} #line 1839 "parse.c" break; case 17: case 18: #line 116 "parse.y" {sqlite3CommitTransaction(pParse);} #line 1845 "parse.c" break; case 19: #line 118 "parse.y" {sqlite3RollbackTransaction(pParse);} #line 1850 "parse.c" break; case 21: #line 123 "parse.y" { sqlite3StartTable(pParse,&yymsp[-5].minor.yy0,&yymsp[-1].minor.yy384,&yymsp[0].minor.yy384,yymsp[-4].minor.yy230,0,yymsp[-2].minor.yy230); } #line 1857 "parse.c" break; case 22: case 25: case 63: case 77: case 79: case 90: case 101: case 112: case 113: case 210: case 213: #line 127 "parse.y" {yygotominor.yy230 = 0;} #line 1872 "parse.c" break; case 23: case 24: case 64: case 78: case 100: case 111: case 211: case 214: #line 128 "parse.y" {yygotominor.yy230 = 1;} #line 1884 "parse.c" break; case 26: #line 134 "parse.y" { sqlite3EndTable(pParse,&yymsp[-1].minor.yy384,&yymsp[0].minor.yy0,0); } #line 1891 "parse.c" break; case 27: #line 137 "parse.y" { sqlite3EndTable(pParse,0,0,yymsp[0].minor.yy239); sqlite3SelectDelete(yymsp[0].minor.yy239); } #line 1899 "parse.c" break; case 30: #line 149 "parse.y" { yygotominor.yy384.z = yymsp[-2].minor.yy384.z; yygotominor.yy384.n = (pParse->sLastToken.z-yymsp[-2].minor.yy384.z) + pParse->sLastToken.n; } #line 1907 "parse.c" break; case 31: #line 153 "parse.y" { sqlite3AddColumn(pParse,&yymsp[0].minor.yy384); yygotominor.yy384 = yymsp[0].minor.yy384; } #line 1915 "parse.c" break; case 32: case 33: case 34: case 35: case 36: case 250: #line 163 "parse.y" {yygotominor.yy384 = yymsp[0].minor.yy0;} #line 1925 "parse.c" break; case 38: #line 222 "parse.y" {sqlite3AddColumnType(pParse,&yymsp[0].minor.yy384);} #line 1930 "parse.c" break; case 39: case 42: case 119: case 120: case 131: case 150: case 238: case 248: case 249: #line 223 "parse.y" {yygotominor.yy384 = yymsp[0].minor.yy384;} #line 1943 "parse.c" break; case 40: #line 224 "parse.y" { yygotominor.yy384.z = yymsp[-3].minor.yy384.z; yygotominor.yy384.n = &yymsp[0].minor.yy0.z[yymsp[0].minor.yy0.n] - yymsp[-3].minor.yy384.z; } #line 1951 "parse.c" break; case 41: #line 228 "parse.y" { yygotominor.yy384.z = yymsp[-5].minor.yy384.z; yygotominor.yy384.n = &yymsp[0].minor.yy0.z[yymsp[0].minor.yy0.n] - yymsp[-5].minor.yy384.z; } #line 1959 "parse.c" break; case 43: #line 234 "parse.y" {yygotominor.yy384.z=yymsp[-1].minor.yy384.z; yygotominor.yy384.n=yymsp[0].minor.yy384.n+(yymsp[0].minor.yy384.z-yymsp[-1].minor.yy384.z);} #line 1964 "parse.c" break; case 44: #line 236 "parse.y" { yygotominor.yy230 = atoi((char*)yymsp[0].minor.yy384.z); } #line 1969 "parse.c" break; case 45: #line 237 "parse.y" { yygotominor.yy230 = -atoi((char*)yymsp[0].minor.yy384.z); } #line 1974 "parse.c" break; case 50: case 52: #line 246 "parse.y" {sqlite3AddDefaultValue(pParse,yymsp[0].minor.yy178);} #line 1980 "parse.c" break; case 51: #line 247 "parse.y" {sqlite3AddDefaultValue(pParse,yymsp[-1].minor.yy178);} #line 1985 "parse.c" break; case 53: #line 249 "parse.y" { Expr *p = sqlite3Expr(TK_UMINUS, yymsp[0].minor.yy178, 0, 0); sqlite3AddDefaultValue(pParse,p); } #line 1993 "parse.c" break; case 54: #line 253 "parse.y" { Expr *p = sqlite3Expr(TK_STRING, 0, 0, &yymsp[0].minor.yy384); sqlite3AddDefaultValue(pParse,p); } #line 2001 "parse.c" break; case 56: #line 262 "parse.y" {sqlite3AddNotNull(pParse, yymsp[0].minor.yy230);} #line 2006 "parse.c" break; case 57: #line 264 "parse.y" {sqlite3AddPrimaryKey(pParse,0,yymsp[-1].minor.yy230,yymsp[0].minor.yy230,yymsp[-2].minor.yy230);} #line 2011 "parse.c" break; case 58: #line 265 "parse.y" {sqlite3CreateIndex(pParse,0,0,0,0,yymsp[0].minor.yy230,0,0,0,0);} #line 2016 "parse.c" break; case 59: #line 266 "parse.y" {sqlite3AddCheckConstraint(pParse,yymsp[-1].minor.yy178);} #line 2021 "parse.c" break; case 60: #line 268 "parse.y" {sqlite3CreateForeignKey(pParse,0,&yymsp[-2].minor.yy384,yymsp[-1].minor.yy462,yymsp[0].minor.yy230);} #line 2026 "parse.c" break; case 61: #line 269 "parse.y" {sqlite3DeferForeignKey(pParse,yymsp[0].minor.yy230);} #line 2031 "parse.c" break; case 62: #line 270 "parse.y" {sqlite3AddCollateType(pParse, (char*)yymsp[0].minor.yy384.z, yymsp[0].minor.yy384.n);} #line 2036 "parse.c" break; case 65: #line 283 "parse.y" { yygotominor.yy230 = OE_Restrict * 0x010101; } #line 2041 "parse.c" break; case 66: #line 284 "parse.y" { yygotominor.yy230 = (yymsp[-1].minor.yy230 & yymsp[0].minor.yy13.mask) | yymsp[0].minor.yy13.value; } #line 2046 "parse.c" break; case 67: #line 286 "parse.y" { yygotominor.yy13.value = 0; yygotominor.yy13.mask = 0x000000; } #line 2051 "parse.c" break; case 68: #line 287 "parse.y" { yygotominor.yy13.value = yymsp[0].minor.yy230; yygotominor.yy13.mask = 0x0000ff; } #line 2056 "parse.c" break; case 69: #line 288 "parse.y" { yygotominor.yy13.value = yymsp[0].minor.yy230<<8; yygotominor.yy13.mask = 0x00ff00; } #line 2061 "parse.c" break; case 70: #line 289 "parse.y" { yygotominor.yy13.value = yymsp[0].minor.yy230<<16; yygotominor.yy13.mask = 0xff0000; } #line 2066 "parse.c" break; case 71: #line 291 "parse.y" { yygotominor.yy230 = OE_SetNull; } #line 2071 "parse.c" break; case 72: #line 292 "parse.y" { yygotominor.yy230 = OE_SetDflt; } #line 2076 "parse.c" break; case 73: #line 293 "parse.y" { yygotominor.yy230 = OE_Cascade; } #line 2081 "parse.c" break; case 74: #line 294 "parse.y" { yygotominor.yy230 = OE_Restrict; } #line 2086 "parse.c" break; case 75: case 76: case 91: case 93: case 95: case 96: case 167: #line 296 "parse.y" {yygotominor.yy230 = yymsp[0].minor.yy230;} #line 2097 "parse.c" break; case 80: #line 306 "parse.y" {yygotominor.yy384.n = 0; yygotominor.yy384.z = 0;} #line 2102 "parse.c" break; case 81: #line 307 "parse.y" {yygotominor.yy384 = yymsp[-1].minor.yy0;} #line 2107 "parse.c" break; case 86: #line 313 "parse.y" {sqlite3AddPrimaryKey(pParse,yymsp[-3].minor.yy462,yymsp[0].minor.yy230,yymsp[-2].minor.yy230,0);} #line 2112 "parse.c" break; case 87: #line 315 "parse.y" {sqlite3CreateIndex(pParse,0,0,0,yymsp[-2].minor.yy462,yymsp[0].minor.yy230,0,0,0,0);} #line 2117 "parse.c" break; case 88: #line 316 "parse.y" {sqlite3AddCheckConstraint(pParse,yymsp[-2].minor.yy178);} #line 2122 "parse.c" break; case 89: #line 318 "parse.y" { sqlite3CreateForeignKey(pParse, yymsp[-6].minor.yy462, &yymsp[-3].minor.yy384, yymsp[-2].minor.yy462, yymsp[-1].minor.yy230); sqlite3DeferForeignKey(pParse, yymsp[0].minor.yy230); } #line 2130 "parse.c" break; case 92: case 94: #line 332 "parse.y" {yygotominor.yy230 = OE_Default;} #line 2136 "parse.c" break; case 97: #line 337 "parse.y" {yygotominor.yy230 = OE_Ignore;} #line 2141 "parse.c" break; case 98: case 168: #line 338 "parse.y" {yygotominor.yy230 = OE_Replace;} #line 2147 "parse.c" break; case 99: #line 342 "parse.y" { sqlite3DropTable(pParse, yymsp[0].minor.yy285, 0, yymsp[-1].minor.yy230); } #line 2154 "parse.c" break; case 102: #line 352 "parse.y" { sqlite3CreateView(pParse, &yymsp[-6].minor.yy0, &yymsp[-3].minor.yy384, &yymsp[-2].minor.yy384, yymsp[0].minor.yy239, yymsp[-5].minor.yy230); } #line 2161 "parse.c" break; case 103: #line 355 "parse.y" { sqlite3DropTable(pParse, yymsp[0].minor.yy285, 1, yymsp[-1].minor.yy230); } #line 2168 "parse.c" break; case 104: #line 362 "parse.y" { sqlite3Select(pParse, yymsp[0].minor.yy239, SRT_Callback, 0, 0, 0, 0, 0); sqlite3SelectDelete(yymsp[0].minor.yy239); } #line 2176 "parse.c" break; case 105: case 128: #line 372 "parse.y" {yygotominor.yy239 = yymsp[0].minor.yy239;} #line 2182 "parse.c" break; case 106: #line 374 "parse.y" { if( yymsp[0].minor.yy239 ){ yymsp[0].minor.yy239->op = yymsp[-1].minor.yy230; yymsp[0].minor.yy239->pPrior = yymsp[-2].minor.yy239; } yygotominor.yy239 = yymsp[0].minor.yy239; } #line 2193 "parse.c" break; case 108: #line 383 "parse.y" {yygotominor.yy230 = TK_ALL;} #line 2198 "parse.c" break; case 110: #line 387 "parse.y" { yygotominor.yy239 = sqlite3SelectNew(yymsp[-6].minor.yy462,yymsp[-5].minor.yy285,yymsp[-4].minor.yy178,yymsp[-3].minor.yy462,yymsp[-2].minor.yy178,yymsp[-1].minor.yy462,yymsp[-7].minor.yy230,yymsp[0].minor.yy270.pLimit,yymsp[0].minor.yy270.pOffset); } #line 2205 "parse.c" break; case 114: case 235: #line 408 "parse.y" {yygotominor.yy462 = yymsp[-1].minor.yy462;} #line 2211 "parse.c" break; case 115: case 141: case 151: case 234: #line 409 "parse.y" {yygotominor.yy462 = 0;} #line 2219 "parse.c" break; case 116: #line 410 "parse.y" { yygotominor.yy462 = sqlite3ExprListAppend(yymsp[-2].minor.yy462,yymsp[-1].minor.yy178,yymsp[0].minor.yy384.n?&yymsp[0].minor.yy384:0); } #line 2226 "parse.c" break; case 117: #line 413 "parse.y" { yygotominor.yy462 = sqlite3ExprListAppend(yymsp[-1].minor.yy462, sqlite3Expr(TK_ALL, 0, 0, 0), 0); } #line 2233 "parse.c" break; case 118: #line 416 "parse.y" { Expr *pRight = sqlite3Expr(TK_ALL, 0, 0, 0); Expr *pLeft = sqlite3Expr(TK_ID, 0, 0, &yymsp[-2].minor.yy384); yygotominor.yy462 = sqlite3ExprListAppend(yymsp[-3].minor.yy462, sqlite3Expr(TK_DOT, pLeft, pRight, 0), 0); } #line 2242 "parse.c" break; case 121: #line 428 "parse.y" {yygotominor.yy384.n = 0;} #line 2247 "parse.c" break; case 122: #line 440 "parse.y" {yygotominor.yy285 = sqliteMalloc(sizeof(*yygotominor.yy285));} #line 2252 "parse.c" break; case 123: #line 441 "parse.y" {yygotominor.yy285 = yymsp[0].minor.yy285;} #line 2257 "parse.c" break; case 124: #line 446 "parse.y" { yygotominor.yy285 = yymsp[-1].minor.yy285; if( yygotominor.yy285 && yygotominor.yy285->nSrc>0 ) yygotominor.yy285->a[yygotominor.yy285->nSrc-1].jointype = yymsp[0].minor.yy230; } #line 2265 "parse.c" break; case 125: #line 450 "parse.y" {yygotominor.yy285 = 0;} #line 2270 "parse.c" break; case 126: #line 451 "parse.y" { yygotominor.yy285 = sqlite3SrcListAppend(yymsp[-5].minor.yy285,&yymsp[-4].minor.yy384,&yymsp[-3].minor.yy384); if( yymsp[-2].minor.yy384.n ) sqlite3SrcListAddAlias(yygotominor.yy285,&yymsp[-2].minor.yy384); if( yymsp[-1].minor.yy178 ){ if( yygotominor.yy285 && yygotominor.yy285->nSrc>1 ){ yygotominor.yy285->a[yygotominor.yy285->nSrc-2].pOn = yymsp[-1].minor.yy178; } else { sqlite3ExprDelete(yymsp[-1].minor.yy178); } } if( yymsp[0].minor.yy160 ){ if( yygotominor.yy285 && yygotominor.yy285->nSrc>1 ){ yygotominor.yy285->a[yygotominor.yy285->nSrc-2].pUsing = yymsp[0].minor.yy160; } else { sqlite3IdListDelete(yymsp[0].minor.yy160); } } } #line 2286 "parse.c" break; case 127: #line 465 "parse.y" { yygotominor.yy285 = sqlite3SrcListAppend(yymsp[-6].minor.yy285,0,0); yygotominor.yy285->a[yygotominor.yy285->nSrc-1].pSelect = yymsp[-4].minor.yy239; if( yymsp[-2].minor.yy384.n ) sqlite3SrcListAddAlias(yygotominor.yy285,&yymsp[-2].minor.yy384); if( yymsp[-1].minor.yy178 ){ if( yygotominor.yy285 && yygotominor.yy285->nSrc>1 ){ yygotominor.yy285->a[yygotominor.yy285->nSrc-2].pOn = yymsp[-1].minor.yy178; } else { sqlite3ExprDelete(yymsp[-1].minor.yy178); } } if( yymsp[0].minor.yy160 ){ if( yygotominor.yy285 && yygotominor.yy285->nSrc>1 ){ yygotominor.yy285->a[yygotominor.yy285->nSrc-2].pUsing = yymsp[0].minor.yy160; } else { sqlite3IdListDelete(yymsp[0].minor.yy160); } } } #line 2303 "parse.c" break; case 129: #line 486 "parse.y" { yygotominor.yy239 = sqlite3SelectNew(0,yymsp[0].minor.yy285,0,0,0,0,0,0,0); } #line 2310 "parse.c" break; case 130: #line 492 "parse.y" {yygotominor.yy384.z=0; yygotominor.yy384.n=0;} #line 2315 "parse.c" break; case 132: #line 497 "parse.y" {yygotominor.yy285 = sqlite3SrcListAppend(0,&yymsp[-1].minor.yy384,&yymsp[0].minor.yy384);} #line 2320 "parse.c" break; case 133: #line 501 "parse.y" { yygotominor.yy230 = JT_INNER; } #line 2325 "parse.c" break; case 134: #line 502 "parse.y" { yygotominor.yy230 = sqlite3JoinType(pParse,&yymsp[-1].minor.yy0,0,0); } #line 2330 "parse.c" break; case 135: #line 503 "parse.y" { yygotominor.yy230 = sqlite3JoinType(pParse,&yymsp[-2].minor.yy0,&yymsp[-1].minor.yy384,0); } #line 2335 "parse.c" break; case 136: #line 505 "parse.y" { yygotominor.yy230 = sqlite3JoinType(pParse,&yymsp[-3].minor.yy0,&yymsp[-2].minor.yy384,&yymsp[-1].minor.yy384); } #line 2340 "parse.c" break; case 137: case 145: case 154: case 161: case 175: case 200: case 223: case 225: case 229: #line 509 "parse.y" {yygotominor.yy178 = yymsp[0].minor.yy178;} #line 2353 "parse.c" break; case 138: case 153: case 160: case 201: case 224: case 226: case 230: #line 510 "parse.y" {yygotominor.yy178 = 0;} #line 2364 "parse.c" break; case 139: case 172: #line 514 "parse.y" {yygotominor.yy160 = yymsp[-1].minor.yy160;} #line 2370 "parse.c" break; case 140: case 171: #line 515 "parse.y" {yygotominor.yy160 = 0;} #line 2376 "parse.c" break; case 142: case 152: #line 526 "parse.y" {yygotominor.yy462 = yymsp[0].minor.yy462;} #line 2382 "parse.c" break; case 143: #line 527 "parse.y" { yygotominor.yy462 = sqlite3ExprListAppend(yymsp[-4].minor.yy462,yymsp[-2].minor.yy178,yymsp[-1].minor.yy384.n>0?&yymsp[-1].minor.yy384:0); if( yygotominor.yy462 ) yygotominor.yy462->a[yygotominor.yy462->nExpr-1].sortOrder = yymsp[0].minor.yy230; } #line 2390 "parse.c" break; case 144: #line 531 "parse.y" { yygotominor.yy462 = sqlite3ExprListAppend(0,yymsp[-2].minor.yy178,yymsp[-1].minor.yy384.n>0?&yymsp[-1].minor.yy384:0); if( yygotominor.yy462 && yygotominor.yy462->a ) yygotominor.yy462->a[0].sortOrder = yymsp[0].minor.yy230; } #line 2398 "parse.c" break; case 146: case 148: #line 540 "parse.y" {yygotominor.yy230 = SQLITE_SO_ASC;} #line 2404 "parse.c" break; case 147: #line 541 "parse.y" {yygotominor.yy230 = SQLITE_SO_DESC;} #line 2409 "parse.c" break; case 149: #line 543 "parse.y" {yygotominor.yy384.z = 0; yygotominor.yy384.n = 0;} #line 2414 "parse.c" break; case 155: #line 561 "parse.y" {yygotominor.yy270.pLimit = 0; yygotominor.yy270.pOffset = 0;} #line 2419 "parse.c" break; case 156: #line 562 "parse.y" {yygotominor.yy270.pLimit = yymsp[0].minor.yy178; yygotominor.yy270.pOffset = 0;} #line 2424 "parse.c" break; case 157: #line 564 "parse.y" {yygotominor.yy270.pLimit = yymsp[-2].minor.yy178; yygotominor.yy270.pOffset = yymsp[0].minor.yy178;} #line 2429 "parse.c" break; case 158: #line 566 "parse.y" {yygotominor.yy270.pOffset = yymsp[-2].minor.yy178; yygotominor.yy270.pLimit = yymsp[0].minor.yy178;} #line 2434 "parse.c" break; case 159: #line 570 "parse.y" {sqlite3DeleteFrom(pParse,yymsp[-1].minor.yy285,yymsp[0].minor.yy178);} #line 2439 "parse.c" break; case 162: #line 581 "parse.y" {sqlite3Update(pParse,yymsp[-3].minor.yy285,yymsp[-1].minor.yy462,yymsp[0].minor.yy178,yymsp[-4].minor.yy230);} #line 2444 "parse.c" break; case 163: #line 587 "parse.y" {yygotominor.yy462 = sqlite3ExprListAppend(yymsp[-4].minor.yy462,yymsp[0].minor.yy178,&yymsp[-2].minor.yy384);} #line 2449 "parse.c" break; case 164: #line 588 "parse.y" {yygotominor.yy462 = sqlite3ExprListAppend(0,yymsp[0].minor.yy178,&yymsp[-2].minor.yy384);} #line 2454 "parse.c" break; case 165: #line 594 "parse.y" {sqlite3Insert(pParse, yymsp[-5].minor.yy285, yymsp[-1].minor.yy462, 0, yymsp[-4].minor.yy160, yymsp[-7].minor.yy230);} #line 2459 "parse.c" break; case 166: #line 596 "parse.y" {sqlite3Insert(pParse, yymsp[-2].minor.yy285, 0, yymsp[0].minor.yy239, yymsp[-1].minor.yy160, yymsp[-4].minor.yy230);} #line 2464 "parse.c" break; case 169: case 227: #line 606 "parse.y" {yygotominor.yy462 = sqlite3ExprListAppend(yymsp[-2].minor.yy462,yymsp[0].minor.yy178,0);} #line 2470 "parse.c" break; case 170: case 228: #line 607 "parse.y" {yygotominor.yy462 = sqlite3ExprListAppend(0,yymsp[0].minor.yy178,0);} #line 2476 "parse.c" break; case 173: #line 616 "parse.y" {yygotominor.yy160 = sqlite3IdListAppend(yymsp[-2].minor.yy160,&yymsp[0].minor.yy384);} #line 2481 "parse.c" break; case 174: #line 617 "parse.y" {yygotominor.yy160 = sqlite3IdListAppend(0,&yymsp[0].minor.yy384);} #line 2486 "parse.c" break; case 176: #line 628 "parse.y" {yygotominor.yy178 = yymsp[-1].minor.yy178; sqlite3ExprSpan(yygotominor.yy178,&yymsp[-2].minor.yy0,&yymsp[0].minor.yy0); } #line 2491 "parse.c" break; case 177: case 182: case 183: #line 629 "parse.y" {yygotominor.yy178 = sqlite3Expr(yymsp[0].major, 0, 0, &yymsp[0].minor.yy0);} #line 2498 "parse.c" break; case 178: case 179: #line 630 "parse.y" {yygotominor.yy178 = sqlite3Expr(TK_ID, 0, 0, &yymsp[0].minor.yy0);} #line 2504 "parse.c" break; case 180: #line 632 "parse.y" { Expr *temp1 = sqlite3Expr(TK_ID, 0, 0, &yymsp[-2].minor.yy384); Expr *temp2 = sqlite3Expr(TK_ID, 0, 0, &yymsp[0].minor.yy384); yygotominor.yy178 = sqlite3Expr(TK_DOT, temp1, temp2, 0); } #line 2513 "parse.c" break; case 181: #line 637 "parse.y" { Expr *temp1 = sqlite3Expr(TK_ID, 0, 0, &yymsp[-4].minor.yy384); Expr *temp2 = sqlite3Expr(TK_ID, 0, 0, &yymsp[-2].minor.yy384); Expr *temp3 = sqlite3Expr(TK_ID, 0, 0, &yymsp[0].minor.yy384); Expr *temp4 = sqlite3Expr(TK_DOT, temp2, temp3, 0); yygotominor.yy178 = sqlite3Expr(TK_DOT, temp1, temp4, 0); } #line 2524 "parse.c" break; case 184: #line 646 "parse.y" {yygotominor.yy178 = sqlite3RegisterExpr(pParse, &yymsp[0].minor.yy0);} #line 2529 "parse.c" break; case 185: #line 647 "parse.y" { Token *pToken = &yymsp[0].minor.yy0; Expr *pExpr = yygotominor.yy178 = sqlite3Expr(TK_VARIABLE, 0, 0, pToken); sqlite3ExprAssignVarNumber(pParse, pExpr); } #line 2538 "parse.c" break; case 186: #line 653 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_CAST, yymsp[-3].minor.yy178, 0, &yymsp[-1].minor.yy384); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-5].minor.yy0,&yymsp[0].minor.yy0); } #line 2546 "parse.c" break; case 187: #line 658 "parse.y" { yygotominor.yy178 = sqlite3ExprFunction(yymsp[-1].minor.yy462, &yymsp[-4].minor.yy0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-4].minor.yy0,&yymsp[0].minor.yy0); if( yymsp[-2].minor.yy230 ){ yygotominor.yy178->flags |= EP_Distinct; } } #line 2557 "parse.c" break; case 188: #line 665 "parse.y" { yygotominor.yy178 = sqlite3ExprFunction(0, &yymsp[-3].minor.yy0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-3].minor.yy0,&yymsp[0].minor.yy0); } #line 2565 "parse.c" break; case 189: #line 669 "parse.y" { /* The CURRENT_TIME, CURRENT_DATE, and CURRENT_TIMESTAMP values are ** treated as functions that return constants */ yygotominor.yy178 = sqlite3ExprFunction(0,&yymsp[0].minor.yy0); if( yygotominor.yy178 ) yygotominor.yy178->op = TK_CONST_FUNC; } #line 2575 "parse.c" break; case 190: case 191: case 192: case 193: case 194: case 195: case 196: case 197: #line 675 "parse.y" {yygotominor.yy178 = sqlite3Expr(yymsp[-1].major, yymsp[-2].minor.yy178, yymsp[0].minor.yy178, 0);} #line 2587 "parse.c" break; case 198: #line 685 "parse.y" {yygotominor.yy440.eOperator = yymsp[0].minor.yy0; yygotominor.yy440.not = 0;} #line 2592 "parse.c" break; case 199: #line 686 "parse.y" {yygotominor.yy440.eOperator = yymsp[0].minor.yy0; yygotominor.yy440.not = 1;} #line 2597 "parse.c" break; case 202: #line 691 "parse.y" { ExprList *pList = sqlite3ExprListAppend(0, yymsp[-1].minor.yy178, 0); pList = sqlite3ExprListAppend(pList, yymsp[-3].minor.yy178, 0); if( yymsp[0].minor.yy178 ){ pList = sqlite3ExprListAppend(pList, yymsp[0].minor.yy178, 0); } yygotominor.yy178 = sqlite3ExprFunction(pList, &yymsp[-2].minor.yy440.eOperator); if( yymsp[-2].minor.yy440.not ) yygotominor.yy178 = sqlite3Expr(TK_NOT, yygotominor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178, &yymsp[-3].minor.yy178->span, &yymsp[-1].minor.yy178->span); } #line 2611 "parse.c" break; case 203: #line 702 "parse.y" { yygotominor.yy178 = sqlite3Expr(yymsp[0].major, yymsp[-1].minor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-1].minor.yy178->span,&yymsp[0].minor.yy0); } #line 2619 "parse.c" break; case 204: #line 706 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_ISNULL, yymsp[-2].minor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-2].minor.yy178->span,&yymsp[0].minor.yy0); } #line 2627 "parse.c" break; case 205: #line 710 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_NOTNULL, yymsp[-2].minor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-2].minor.yy178->span,&yymsp[0].minor.yy0); } #line 2635 "parse.c" break; case 206: #line 714 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_NOTNULL, yymsp[-3].minor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-3].minor.yy178->span,&yymsp[0].minor.yy0); } #line 2643 "parse.c" break; case 207: #line 718 "parse.y" { yygotominor.yy178 = sqlite3Expr(yymsp[-1].major, yymsp[0].minor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy178->span); } #line 2651 "parse.c" break; case 208: #line 722 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_UMINUS, yymsp[0].minor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy178->span); } #line 2659 "parse.c" break; case 209: #line 726 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_UPLUS, yymsp[0].minor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy178->span); } #line 2667 "parse.c" break; case 212: #line 733 "parse.y" { ExprList *pList = sqlite3ExprListAppend(0, yymsp[-2].minor.yy178, 0); pList = sqlite3ExprListAppend(pList, yymsp[0].minor.yy178, 0); yygotominor.yy178 = sqlite3Expr(TK_BETWEEN, yymsp[-4].minor.yy178, 0, 0); if( yygotominor.yy178 ){ yygotominor.yy178->pList = pList; }else{ sqlite3ExprListDelete(pList); } if( yymsp[-3].minor.yy230 ) yygotominor.yy178 = sqlite3Expr(TK_NOT, yygotominor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-4].minor.yy178->span,&yymsp[0].minor.yy178->span); } #line 2683 "parse.c" break; case 215: #line 749 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_IN, yymsp[-4].minor.yy178, 0, 0); if( yygotominor.yy178 ){ yygotominor.yy178->pList = yymsp[-1].minor.yy462; }else{ sqlite3ExprListDelete(yymsp[-1].minor.yy462); } if( yymsp[-3].minor.yy230 ) yygotominor.yy178 = sqlite3Expr(TK_NOT, yygotominor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-4].minor.yy178->span,&yymsp[0].minor.yy0); } #line 2697 "parse.c" break; case 216: #line 759 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_SELECT, 0, 0, 0); if( yygotominor.yy178 ){ yygotominor.yy178->pSelect = yymsp[-1].minor.yy239; }else{ sqlite3SelectDelete(yymsp[-1].minor.yy239); } sqlite3ExprSpan(yygotominor.yy178,&yymsp[-2].minor.yy0,&yymsp[0].minor.yy0); } #line 2710 "parse.c" break; case 217: #line 768 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_IN, yymsp[-4].minor.yy178, 0, 0); if( yygotominor.yy178 ){ yygotominor.yy178->pSelect = yymsp[-1].minor.yy239; }else{ sqlite3SelectDelete(yymsp[-1].minor.yy239); } if( yymsp[-3].minor.yy230 ) yygotominor.yy178 = sqlite3Expr(TK_NOT, yygotominor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-4].minor.yy178->span,&yymsp[0].minor.yy0); } #line 2724 "parse.c" break; case 218: #line 778 "parse.y" { SrcList *pSrc = sqlite3SrcListAppend(0,&yymsp[-1].minor.yy384,&yymsp[0].minor.yy384); yygotominor.yy178 = sqlite3Expr(TK_IN, yymsp[-3].minor.yy178, 0, 0); if( yygotominor.yy178 ){ yygotominor.yy178->pSelect = sqlite3SelectNew(0,pSrc,0,0,0,0,0,0,0); }else{ sqlite3SrcListDelete(pSrc); } if( yymsp[-2].minor.yy230 ) yygotominor.yy178 = sqlite3Expr(TK_NOT, yygotominor.yy178, 0, 0); sqlite3ExprSpan(yygotominor.yy178,&yymsp[-3].minor.yy178->span,yymsp[0].minor.yy384.z?&yymsp[0].minor.yy384:&yymsp[-1].minor.yy384); } #line 2739 "parse.c" break; case 219: #line 789 "parse.y" { Expr *p = yygotominor.yy178 = sqlite3Expr(TK_EXISTS, 0, 0, 0); if( p ){ p->pSelect = yymsp[-1].minor.yy239; sqlite3ExprSpan(p,&yymsp[-3].minor.yy0,&yymsp[0].minor.yy0); }else{ sqlite3SelectDelete(yymsp[-1].minor.yy239); } } #line 2752 "parse.c" break; case 220: #line 801 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_CASE, yymsp[-3].minor.yy178, yymsp[-1].minor.yy178, 0); if( yygotominor.yy178 ){ yygotominor.yy178->pList = yymsp[-2].minor.yy462; }else{ sqlite3ExprListDelete(yymsp[-2].minor.yy462); } sqlite3ExprSpan(yygotominor.yy178, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0); } #line 2765 "parse.c" break; case 221: #line 812 "parse.y" { yygotominor.yy462 = sqlite3ExprListAppend(yymsp[-4].minor.yy462, yymsp[-2].minor.yy178, 0); yygotominor.yy462 = sqlite3ExprListAppend(yygotominor.yy462, yymsp[0].minor.yy178, 0); } #line 2773 "parse.c" break; case 222: #line 816 "parse.y" { yygotominor.yy462 = sqlite3ExprListAppend(0, yymsp[-2].minor.yy178, 0); yygotominor.yy462 = sqlite3ExprListAppend(yygotominor.yy462, yymsp[0].minor.yy178, 0); } #line 2781 "parse.c" break; case 231: #line 843 "parse.y" { sqlite3CreateIndex(pParse, &yymsp[-6].minor.yy384, &yymsp[-5].minor.yy384, sqlite3SrcListAppend(0,&yymsp[-3].minor.yy384,0), yymsp[-1].minor.yy462, yymsp[-9].minor.yy230, &yymsp[-10].minor.yy0, &yymsp[0].minor.yy0, SQLITE_SO_ASC, yymsp[-7].minor.yy230); } #line 2789 "parse.c" break; case 232: case 277: #line 849 "parse.y" {yygotominor.yy230 = OE_Abort;} #line 2795 "parse.c" break; case 233: #line 850 "parse.y" {yygotominor.yy230 = OE_None;} #line 2800 "parse.c" break; case 236: #line 860 "parse.y" { Expr *p = 0; if( yymsp[-1].minor.yy384.n>0 ){ p = sqlite3Expr(TK_COLUMN, 0, 0, 0); if( p ) p->pColl = sqlite3LocateCollSeq(pParse, (char*)yymsp[-1].minor.yy384.z, yymsp[-1].minor.yy384.n); } yygotominor.yy462 = sqlite3ExprListAppend(yymsp[-4].minor.yy462, p, &yymsp[-2].minor.yy384); if( yygotominor.yy462 ) yygotominor.yy462->a[yygotominor.yy462->nExpr-1].sortOrder = yymsp[0].minor.yy230; } #line 2813 "parse.c" break; case 237: #line 869 "parse.y" { Expr *p = 0; if( yymsp[-1].minor.yy384.n>0 ){ p = sqlite3Expr(TK_COLUMN, 0, 0, 0); if( p ) p->pColl = sqlite3LocateCollSeq(pParse, (char*)yymsp[-1].minor.yy384.z, yymsp[-1].minor.yy384.n); } yygotominor.yy462 = sqlite3ExprListAppend(0, p, &yymsp[-2].minor.yy384); if( yygotominor.yy462 ) yygotominor.yy462->a[yygotominor.yy462->nExpr-1].sortOrder = yymsp[0].minor.yy230; } #line 2826 "parse.c" break; case 239: #line 883 "parse.y" {sqlite3DropIndex(pParse, yymsp[0].minor.yy285, yymsp[-1].minor.yy230);} #line 2831 "parse.c" break; case 240: case 241: #line 887 "parse.y" {sqlite3Vacuum(pParse,0);} #line 2837 "parse.c" break; case 242: case 244: #line 893 "parse.y" {sqlite3Pragma(pParse,&yymsp[-3].minor.yy384,&yymsp[-2].minor.yy384,&yymsp[0].minor.yy384,0);} #line 2843 "parse.c" break; case 243: #line 894 "parse.y" {sqlite3Pragma(pParse,&yymsp[-3].minor.yy384,&yymsp[-2].minor.yy384,&yymsp[0].minor.yy0,0);} #line 2848 "parse.c" break; case 245: #line 896 "parse.y" { sqlite3Pragma(pParse,&yymsp[-3].minor.yy384,&yymsp[-2].minor.yy384,&yymsp[0].minor.yy384,1); } #line 2855 "parse.c" break; case 246: #line 899 "parse.y" {sqlite3Pragma(pParse,&yymsp[-4].minor.yy384,&yymsp[-3].minor.yy384,&yymsp[-1].minor.yy384,0);} #line 2860 "parse.c" break; case 247: #line 900 "parse.y" {sqlite3Pragma(pParse,&yymsp[-1].minor.yy384,&yymsp[0].minor.yy384,0,0);} #line 2865 "parse.c" break; case 253: #line 912 "parse.y" { Token all; all.z = yymsp[-3].minor.yy384.z; all.n = (yymsp[0].minor.yy0.z - yymsp[-3].minor.yy384.z) + yymsp[0].minor.yy0.n; sqlite3FinishTrigger(pParse, yymsp[-1].minor.yy247, &all); } #line 2875 "parse.c" break; case 254: #line 921 "parse.y" { sqlite3BeginTrigger(pParse, &yymsp[-7].minor.yy384, &yymsp[-6].minor.yy384, yymsp[-5].minor.yy230, yymsp[-4].minor.yy132.a, yymsp[-4].minor.yy132.b, yymsp[-2].minor.yy285, yymsp[-1].minor.yy230, yymsp[0].minor.yy178, yymsp[-9].minor.yy230); yygotominor.yy384 = (yymsp[-6].minor.yy384.n==0?yymsp[-7].minor.yy384:yymsp[-6].minor.yy384); } #line 2883 "parse.c" break; case 255: case 258: #line 927 "parse.y" { yygotominor.yy230 = TK_BEFORE; } #line 2889 "parse.c" break; case 256: #line 928 "parse.y" { yygotominor.yy230 = TK_AFTER; } #line 2894 "parse.c" break; case 257: #line 929 "parse.y" { yygotominor.yy230 = TK_INSTEAD;} #line 2899 "parse.c" break; case 259: case 260: #line 934 "parse.y" {yygotominor.yy132.a = yymsp[0].major; yygotominor.yy132.b = 0;} #line 2905 "parse.c" break; case 261: #line 936 "parse.y" {yygotominor.yy132.a = TK_UPDATE; yygotominor.yy132.b = yymsp[0].minor.yy160;} #line 2910 "parse.c" break; case 262: case 263: #line 939 "parse.y" { yygotominor.yy230 = TK_ROW; } #line 2916 "parse.c" break; case 264: #line 941 "parse.y" { yygotominor.yy230 = TK_STATEMENT; } #line 2921 "parse.c" break; case 265: #line 945 "parse.y" { yygotominor.yy178 = 0; } #line 2926 "parse.c" break; case 266: #line 946 "parse.y" { yygotominor.yy178 = yymsp[0].minor.yy178; } #line 2931 "parse.c" break; case 267: #line 950 "parse.y" { yymsp[-2].minor.yy247->pNext = yymsp[0].minor.yy247; yygotominor.yy247 = yymsp[-2].minor.yy247; } #line 2939 "parse.c" break; case 268: #line 954 "parse.y" { yygotominor.yy247 = 0; } #line 2944 "parse.c" break; case 269: #line 960 "parse.y" { yygotominor.yy247 = sqlite3TriggerUpdateStep(&yymsp[-3].minor.yy384, yymsp[-1].minor.yy462, yymsp[0].minor.yy178, yymsp[-4].minor.yy230); } #line 2949 "parse.c" break; case 270: #line 965 "parse.y" {yygotominor.yy247 = sqlite3TriggerInsertStep(&yymsp[-5].minor.yy384, yymsp[-4].minor.yy160, yymsp[-1].minor.yy462, 0, yymsp[-7].minor.yy230);} #line 2954 "parse.c" break; case 271: #line 968 "parse.y" {yygotominor.yy247 = sqlite3TriggerInsertStep(&yymsp[-2].minor.yy384, yymsp[-1].minor.yy160, 0, yymsp[0].minor.yy239, yymsp[-4].minor.yy230);} #line 2959 "parse.c" break; case 272: #line 972 "parse.y" {yygotominor.yy247 = sqlite3TriggerDeleteStep(&yymsp[-1].minor.yy384, yymsp[0].minor.yy178);} #line 2964 "parse.c" break; case 273: #line 975 "parse.y" {yygotominor.yy247 = sqlite3TriggerSelectStep(yymsp[0].minor.yy239); } #line 2969 "parse.c" break; case 274: #line 978 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_RAISE, 0, 0, 0); yygotominor.yy178->iColumn = OE_Ignore; sqlite3ExprSpan(yygotominor.yy178, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0); } #line 2978 "parse.c" break; case 275: #line 983 "parse.y" { yygotominor.yy178 = sqlite3Expr(TK_RAISE, 0, 0, &yymsp[-1].minor.yy384); yygotominor.yy178->iColumn = yymsp[-3].minor.yy230; sqlite3ExprSpan(yygotominor.yy178, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0); } #line 2987 "parse.c" break; case 276: #line 991 "parse.y" {yygotominor.yy230 = OE_Rollback;} #line 2992 "parse.c" break; case 278: #line 993 "parse.y" {yygotominor.yy230 = OE_Fail;} #line 2997 "parse.c" break; case 279: #line 998 "parse.y" { sqlite3DropTrigger(pParse,yymsp[0].minor.yy285); } #line 3004 "parse.c" break; case 280: #line 1004 "parse.y" { sqlite3Attach(pParse, yymsp[-3].minor.yy178, yymsp[-1].minor.yy178, yymsp[0].minor.yy292); } #line 3011 "parse.c" break; case 281: #line 1009 "parse.y" { yygotominor.yy292 = 0; } #line 3016 "parse.c" break; case 282: #line 1010 "parse.y" { yygotominor.yy292 = yymsp[0].minor.yy178; } #line 3021 "parse.c" break; case 285: #line 1016 "parse.y" { sqlite3Detach(pParse, yymsp[0].minor.yy178); } #line 3028 "parse.c" break; case 286: #line 1022 "parse.y" {sqlite3Reindex(pParse, 0, 0);} #line 3033 "parse.c" break; case 287: #line 1023 "parse.y" {sqlite3Reindex(pParse, &yymsp[-1].minor.yy384, &yymsp[0].minor.yy384);} #line 3038 "parse.c" break; case 288: #line 1028 "parse.y" {sqlite3Analyze(pParse, 0, 0);} #line 3043 "parse.c" break; case 289: #line 1029 "parse.y" {sqlite3Analyze(pParse, &yymsp[-1].minor.yy384, &yymsp[0].minor.yy384);} #line 3048 "parse.c" break; case 290: #line 1034 "parse.y" { sqlite3AlterRenameTable(pParse,yymsp[-3].minor.yy285,&yymsp[0].minor.yy384); } #line 3055 "parse.c" break; case 291: #line 1037 "parse.y" { sqlite3AlterFinishAddColumn(pParse, &yymsp[0].minor.yy384); } #line 3062 "parse.c" break; case 292: #line 1040 "parse.y" { sqlite3AlterBeginAddColumn(pParse, yymsp[0].minor.yy285); } #line 3069 "parse.c" break; }; yygoto = yyRuleInfo[yyruleno].lhs; yysize = yyRuleInfo[yyruleno].nrhs; yypParser->yyidx -= yysize; yyact = yy_find_reduce_action(yymsp[-yysize].stateno,yygoto); if( yyact < YYNSTATE ){ |
︙ | ︙ | |||
3129 3130 3131 3132 3133 3134 3135 | if( pParse->zErrMsg==0 ){ if( TOKEN.z[0] ){ sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN); }else{ sqlite3ErrorMsg(pParse, "incomplete SQL statement"); } } | | | 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 | if( pParse->zErrMsg==0 ){ if( TOKEN.z[0] ){ sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN); }else{ sqlite3ErrorMsg(pParse, "incomplete SQL statement"); } } #line 3136 "parse.c" sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument variable */ } /* ** The following is executed when the parser accepts */ static void yy_accept( |
︙ | ︙ |
Changes to SQLite.Interop/src/pragma.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code used to implement the PRAGMA command. ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code used to implement the PRAGMA command. ** ** $Id: pragma.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> /* Ignore this whole file if pragmas are disabled */ |
︙ | ︙ |
Changes to SQLite.Interop/src/prepare.c.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains the implementation of the sqlite3_prepare() ** interface, and routines that contribute to loading the database schema ** from disk. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains the implementation of the sqlite3_prepare() ** interface, and routines that contribute to loading the database schema ** from disk. ** ** $Id: prepare.c,v 1.13 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> /* ** Fill the InitData structure with an error message that indicates |
︙ | ︙ | |||
213 214 215 216 217 218 219 | ** meta[4] Db text encoding. 1:UTF-8 3:UTF-16 LE 4:UTF-16 BE ** meta[5] The user cookie. Used by the application. ** meta[6] ** meta[7] ** meta[8] ** meta[9] ** | | | 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | ** meta[4] Db text encoding. 1:UTF-8 3:UTF-16 LE 4:UTF-16 BE ** meta[5] The user cookie. Used by the application. ** meta[6] ** meta[7] ** meta[8] ** meta[9] ** ** Note: The #defined SQLITE_UTF* symbols in sqliteInt.h correspond to ** the possible values of meta[4]. */ if( rc==SQLITE_OK ){ int i; for(i=0; rc==SQLITE_OK && i<sizeof(meta)/sizeof(meta[0]); i++){ rc = sqlite3BtreeGetMeta(pDb->pBt, i+1, (u32 *)&meta[i]); } |
︙ | ︙ | |||
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 | sqlite3DeleteTable(0, pTab); } sqlite3HashClear(&temp1); pSchema->pSeqTab = 0; pSchema->flags &= ~DB_SchemaLoaded; } Schema *sqlite3SchemaGet(Btree *pBt){ Schema * p; if( pBt ){ p = (Schema *)sqlite3BtreeSchema(pBt,sizeof(Schema),sqlite3SchemaFree); }else{ p = (Schema *)sqliteMalloc(sizeof(Schema)); } if( p && 0==p->file_format ){ sqlite3HashInit(&p->tblHash, SQLITE_HASH_STRING, 0); sqlite3HashInit(&p->idxHash, SQLITE_HASH_STRING, 0); sqlite3HashInit(&p->trigHash, SQLITE_HASH_STRING, 0); sqlite3HashInit(&p->aFKey, SQLITE_HASH_STRING, 1); } return p; } int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){ int i = -1000000; /* If pSchema is NULL, then return -1000000. This happens when code in ** expr.c is trying to resolve a reference to a transient table (i.e. one ** created by a sub-select). In this case the return value of this ** function should never be used. | > > > > > > > > > > > | 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 | sqlite3DeleteTable(0, pTab); } sqlite3HashClear(&temp1); pSchema->pSeqTab = 0; pSchema->flags &= ~DB_SchemaLoaded; } /* ** Find and return the schema associated with a BTree. Create ** a new one if necessary. */ Schema *sqlite3SchemaGet(Btree *pBt){ Schema * p; if( pBt ){ p = (Schema *)sqlite3BtreeSchema(pBt,sizeof(Schema),sqlite3SchemaFree); }else{ p = (Schema *)sqliteMalloc(sizeof(Schema)); } if( p && 0==p->file_format ){ sqlite3HashInit(&p->tblHash, SQLITE_HASH_STRING, 0); sqlite3HashInit(&p->idxHash, SQLITE_HASH_STRING, 0); sqlite3HashInit(&p->trigHash, SQLITE_HASH_STRING, 0); sqlite3HashInit(&p->aFKey, SQLITE_HASH_STRING, 1); } return p; } /* ** Convert a schema pointer into the iDb index that indicates ** which database file in db->aDb[] the schema refers to. ** ** If the same database is attached more than once, the first ** attached database is returned. */ int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){ int i = -1000000; /* If pSchema is NULL, then return -1000000. This happens when code in ** expr.c is trying to resolve a reference to a transient table (i.e. one ** created by a sub-select). In this case the return value of this ** function should never be used. |
︙ | ︙ | |||
515 516 517 518 519 520 521 | sqlite3SafetyOff(db); return SQLITE_LOCKED; } } memset(&sParse, 0, sizeof(sParse)); sParse.db = db; | > > > > > > | > | 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 | sqlite3SafetyOff(db); return SQLITE_LOCKED; } } memset(&sParse, 0, sizeof(sParse)); sParse.db = db; if( nBytes>=0 && zSql[nBytes]!=0 ){ char *zSqlCopy = sqlite3StrNDup(zSql, nBytes); sqlite3RunParser(&sParse, zSqlCopy, &zErrMsg); sParse.zTail += zSql - zSqlCopy; sqliteFree(zSqlCopy); }else{ sqlite3RunParser(&sParse, zSql, &zErrMsg); } if( sqlite3MallocFailed() ){ sParse.rc = SQLITE_NOMEM; } if( sParse.rc==SQLITE_DONE ) sParse.rc = SQLITE_OK; if( sParse.checkSchema && !schemaIsValid(db) ){ sParse.rc = SQLITE_SCHEMA; |
︙ | ︙ |
Changes to SQLite.Interop/src/printf.c.
︙ | ︙ | |||
592 593 594 595 596 597 598 | zExtra = bufpt; } length = strlen(bufpt); if( precision>=0 && precision<length ) length = precision; break; case etSQLESCAPE: case etSQLESCAPE2: { | | | | | | | | | | | 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 | zExtra = bufpt; } length = strlen(bufpt); if( precision>=0 && precision<length ) length = precision; break; case etSQLESCAPE: case etSQLESCAPE2: { int i, j, n, ch, isnull; int needQuote; char *escarg = va_arg(ap,char*); isnull = escarg==0; if( isnull ) escarg = (xtype==etSQLESCAPE2 ? "NULL" : "(NULL)"); for(i=n=0; (ch=escarg[i])!=0; i++){ if( ch=='\'' ) n++; } needQuote = !isnull && xtype==etSQLESCAPE2; n += i + 1 + needQuote*2; if( n>etBUFSIZE ){ bufpt = zExtra = sqliteMalloc( n ); if( bufpt==0 ) return -1; }else{ bufpt = buf; } j = 0; if( needQuote ) bufpt[j++] = '\''; for(i=0; (ch=escarg[i])!=0; i++){ bufpt[j++] = ch; if( ch=='\'' ) bufpt[j++] = ch; } if( needQuote ) bufpt[j++] = '\''; bufpt[j] = 0; length = j; if( precision>=0 && precision<length ) length = precision; break; } |
︙ | ︙ |
Changes to SQLite.Interop/src/random.c.
︙ | ︙ | |||
11 12 13 14 15 16 17 | ************************************************************************* ** This file contains code to implement a pseudo-random number ** generator (PRNG) for SQLite. ** ** Random numbers are used by some of the database backends in order ** to generate random integer keys for tables or random filenames. ** | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ************************************************************************* ** This file contains code to implement a pseudo-random number ** generator (PRNG) for SQLite. ** ** Random numbers are used by some of the database backends in order ** to generate random integer keys for tables or random filenames. ** ** $Id: random.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" /* ** Get a single 8-bit random value from the RC4 PRNG. The Mutex |
︙ | ︙ |
Changes to SQLite.Interop/src/select.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle SELECT statements in SQLite. ** | | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle SELECT statements in SQLite. ** ** $Id: select.c,v 1.18 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Delete all the content of a Select structure but do not deallocate ** the select structure itself. */ static void clearSelect(Select *p){ sqlite3ExprListDelete(p->pEList); sqlite3SrcListDelete(p->pSrc); sqlite3ExprDelete(p->pWhere); sqlite3ExprListDelete(p->pGroupBy); sqlite3ExprDelete(p->pHaving); sqlite3ExprListDelete(p->pOrderBy); sqlite3SelectDelete(p->pPrior); |
︙ | ︙ | |||
553 554 555 556 557 558 559 | if( pOrderBy ){ /* At first glance you would think we could optimize out the ** ORDER BY in this case since the order of entries in the set ** does not matter. But there might be a LIMIT clause, in which ** case the order does matter */ pushOntoSorter(pParse, pOrderBy, p); }else{ | | | | | 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 | if( pOrderBy ){ /* At first glance you would think we could optimize out the ** ORDER BY in this case since the order of entries in the set ** does not matter. But there might be a LIMIT clause, in which ** case the order does matter */ pushOntoSorter(pParse, pOrderBy, p); }else{ char affinity = (iParm>>16)&0xFF; affinity = sqlite3CompareAffinity(pEList->a[0].pExpr, affinity); sqlite3VdbeOp3(v, OP_MakeRecord, 1, 0, &affinity, 1); sqlite3VdbeAddOp(v, OP_IdxInsert, (iParm&0x0000FFFF), 0); } sqlite3VdbeJumpHere(v, addr2); break; } /* If any row exist in the result set, record that fact and abort. |
︙ | ︙ | |||
1074 1075 1076 1077 1078 1079 1080 | ** Return 0 on success. If there are problems, leave an error message ** in pParse and return non-zero. */ static int prepSelectStmt(Parse *pParse, Select *p){ int i, j, k, rc; SrcList *pTabList; ExprList *pEList; | < > | 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 | ** Return 0 on success. If there are problems, leave an error message ** in pParse and return non-zero. */ static int prepSelectStmt(Parse *pParse, Select *p){ int i, j, k, rc; SrcList *pTabList; ExprList *pEList; struct SrcList_item *pFrom; if( p==0 || p->pSrc==0 || sqlite3MallocFailed() ){ return 1; } pTabList = p->pSrc; pEList = p->pEList; /* Make sure cursor numbers have been assigned to all entries in ** the FROM clause of the SELECT statement. */ sqlite3SrcListAssignCursors(pParse, p->pSrc); /* Look up every table named in the FROM clause of the select. If ** an entry of the FROM clause is a subquery instead of a table or view, ** then create a transient table structure to describe the subquery. */ for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){ Table *pTab; if( pFrom->pTab!=0 ){ /* This statement has already been prepared. There is no need ** to go further. */ assert( i==0 ); return 0; } if( pFrom->zName==0 ){ |
︙ | ︙ | |||
1216 1217 1218 1219 1220 1221 1222 | } if( zTName && (zTabName==0 || zTabName[0]==0 || sqlite3StrICmp(zTName, zTabName)!=0) ){ continue; } tableSeen = 1; for(j=0; j<pTab->nCol; j++){ | | | | 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 | } if( zTName && (zTabName==0 || zTabName[0]==0 || sqlite3StrICmp(zTName, zTabName)!=0) ){ continue; } tableSeen = 1; for(j=0; j<pTab->nCol; j++){ Expr *pExpr, *pRight; char *zName = pTab->aCol[j].zName; if( i>0 ){ struct SrcList_item *pLeft = &pTabList->a[i-1]; if( (pLeft->jointype & JT_NATURAL)!=0 && columnIndex(pLeft->pTab, zName)>=0 ){ /* In a NATURAL join, omit the join columns from the ** table on the right */ continue; } if( sqlite3IdListIndex(pLeft->pUsing, zName)>=0 ){ /* In a join with a USING clause, omit columns in the ** using clause from the table on the right. */ continue; } } pRight = sqlite3Expr(TK_ID, 0, 0, 0); if( pRight==0 ) break; setToken(&pRight->token, zName); if( zTabName && (longNames || pTabList->nSrc>1) ){ Expr *pLeft = sqlite3Expr(TK_ID, 0, 0, 0); pExpr = sqlite3Expr(TK_DOT, pLeft, pRight, 0); if( pExpr==0 ) break; setToken(&pLeft->token, zTabName); setToken(&pExpr->span, sqlite3MPrintf("%s.%s", zTabName, zName)); pExpr->span.dyn = 1; pExpr->token.z = 0; pExpr->token.n = 0; |
︙ | ︙ |
Deleted SQLite.Interop/src/server.c.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Changes to SQLite.Interop/src/shell.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** ** $Id: shell.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <assert.h> #include "sqlite3.h" #include <ctype.h> |
︙ | ︙ | |||
770 771 772 773 774 775 776 | " tcl TCL list elements\n" ".nullvalue STRING Print STRING in place of NULL values\n" ".output FILENAME Send output to FILENAME\n" ".output stdout Send output to the screen\n" ".prompt MAIN CONTINUE Replace the standard prompts\n" ".quit Exit this program\n" ".read FILENAME Execute SQL in FILENAME\n" | < < < < < < | 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 | " tcl TCL list elements\n" ".nullvalue STRING Print STRING in place of NULL values\n" ".output FILENAME Send output to FILENAME\n" ".output stdout Send output to the screen\n" ".prompt MAIN CONTINUE Replace the standard prompts\n" ".quit Exit this program\n" ".read FILENAME Execute SQL in FILENAME\n" ".schema ?TABLE? Show the CREATE statements\n" ".separator STRING Change separator used by output mode and .import\n" ".show Show the current values for various settings\n" ".tables ?PATTERN? List names of tables matching a LIKE pattern\n" ".timeout MS Try opening locked tables for MS milliseconds\n" ".width NUM NUM ... Set column widths for \"column\" mode\n" ; /* Forward reference */ static void process_input(struct callback_data *p, FILE *in); /* ** Make sure the database is open. If it is not, then open it. If ** the database fails to open, print an error message and exit. */ static void open_db(struct callback_data *p){ if( p->db==0 ){ sqlite3_open(p->zDbFilename, &p->db); db = p->db; sqlite3_create_function(db, "shellstatic", 0, SQLITE_UTF8, 0, shellstaticFunc, 0, 0); if( SQLITE_OK!=sqlite3_errcode(db) ){ fprintf(stderr,"Unable to open database \"%s\": %s\n", p->zDbFilename, sqlite3_errmsg(db)); exit(1); } |
︙ | ︙ | |||
1223 1224 1225 1226 1227 1228 1229 | fprintf(stderr,"can't open \"%s\"\n", azArg[1]); }else{ process_input(p, alt); fclose(alt); } }else | < < < < < < < < < < < < < < < < | 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 | fprintf(stderr,"can't open \"%s\"\n", azArg[1]); }else{ process_input(p, alt); fclose(alt); } }else if( c=='s' && strncmp(azArg[0], "schema", n)==0 ){ struct callback_data data; char *zErrMsg = 0; open_db(p); memcpy(&data, p, sizeof(data)); data.showHeader = 0; data.mode = MODE_Semi; |
︙ | ︙ | |||
1616 1617 1618 1619 1620 1621 1622 | */ static const char zOptions[] = " -init filename read/process named file\n" " -echo print commands before execution\n" " -[no]header turn headers on or off\n" " -column set output mode to 'column'\n" " -html set output mode to HTML\n" | < < < | 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 | */ static const char zOptions[] = " -init filename read/process named file\n" " -echo print commands before execution\n" " -[no]header turn headers on or off\n" " -column set output mode to 'column'\n" " -html set output mode to HTML\n" " -line set output mode to 'line'\n" " -list set output mode to 'list'\n" " -separator 'x' set output field separator (|)\n" " -nullvalue 'text' set text string for NULL values\n" " -version show SQLite version\n" " -help show this text, also show dot-commands\n" ; |
︙ | ︙ |
Changes to SQLite.Interop/src/sqlite3.h.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the SQLite library ** presents to client programs. ** | | | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the SQLite library ** presents to client programs. ** ** @(#) $Id: sqlite3.h,v 1.18 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef _SQLITE3_H_ #define _SQLITE3_H_ #include <stdarg.h> /* Needed for the definition of va_list */ /* ** Make sure we can call this stuff from C++. */ #ifdef __cplusplus extern "C" { #endif /* ** The version of the SQLite library. */ #ifdef SQLITE_VERSION # undef SQLITE_VERSION #endif #define SQLITE_VERSION "3.3.3" /* ** The format of the version string is "X.Y.Z<trailing string>", where ** X is the major version number, Y is the minor version number and Z ** is the release number. The trailing string is often "alpha" or "beta". ** For example "3.1.1beta". ** ** The SQLITE_VERSION_NUMBER is an integer with the value ** (X*100000 + Y*1000 + Z). For example, for version "3.1.1beta", ** SQLITE_VERSION_NUMBER is set to 3001001. To detect if they are using ** version 3.1.1 or greater at compile time, programs may use the test ** (SQLITE_VERSION_NUMBER>=3001001). */ #ifdef SQLITE_VERSION_NUMBER # undef SQLITE_VERSION_NUMBER #endif #define SQLITE_VERSION_NUMBER 3003003 /* ** The version string is also compiled into the library so that a program ** can check to make sure that the lib*.a file and the *.h file are from ** the same version. The sqlite3_libversion() function returns a pointer ** to the sqlite3_version variable - useful in DLLs which cannot access ** global variables. |
︙ | ︙ |
Changes to SQLite.Interop/src/sqliteInt.h.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Internal interface definitions for SQLite. ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Internal interface definitions for SQLite. ** ** @(#) $Id: sqliteInt.h,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ /* ** Extra interface definitions for those who need them */ |
︙ | ︙ | |||
1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 | KeyInfo *sqlite3IndexKeyinfo(Parse *, Index *); int sqlite3CreateFunc(sqlite3 *, const char *, int, int, void *, void (*)(sqlite3_context*,int,sqlite3_value **), void (*)(sqlite3_context*,int,sqlite3_value **), void (*)(sqlite3_context*)); int sqlite3ApiExit(sqlite3 *db, int); int sqlite3MallocFailed(void); void sqlite3FailedMalloc(void); #ifndef SQLITE_OMIT_SHARED_CACHE void sqlite3TableLock(Parse *, int, int, u8, const char *); #else #define sqlite3TableLock(v,w,x,y,z) #endif | > | 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 | KeyInfo *sqlite3IndexKeyinfo(Parse *, Index *); int sqlite3CreateFunc(sqlite3 *, const char *, int, int, void *, void (*)(sqlite3_context*,int,sqlite3_value **), void (*)(sqlite3_context*,int,sqlite3_value **), void (*)(sqlite3_context*)); int sqlite3ApiExit(sqlite3 *db, int); int sqlite3MallocFailed(void); void sqlite3FailedMalloc(void); void sqlite3AbortOtherActiveVdbes(sqlite3 *, Vdbe *); #ifndef SQLITE_OMIT_SHARED_CACHE void sqlite3TableLock(Parse *, int, int, u8, const char *); #else #define sqlite3TableLock(v,w,x,y,z) #endif |
︙ | ︙ |
Changes to SQLite.Interop/src/tclsqlite.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** A TCL Interface to SQLite ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** A TCL Interface to SQLite ** ** $Id: tclsqlite.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef NO_TCL /* Omit this whole file if TCL is unavailable */ #include "sqliteInt.h" #include "hash.h" #include "tcl.h" #include <stdlib.h> |
︙ | ︙ |
Changes to SQLite.Interop/src/tokenize.c.
︙ | ︙ | |||
11 12 13 14 15 16 17 | ************************************************************************* ** An tokenizer for SQL ** ** This file contains C code that splits an SQL input string up into ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ************************************************************************* ** An tokenizer for SQL ** ** This file contains C code that splits an SQL input string up into ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** ** $Id: tokenize.c,v 1.21 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> #include <stdlib.h> /* |
︙ | ︙ |
Changes to SQLite.Interop/src/update.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle UPDATE statements. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle UPDATE statements. ** ** $Id: update.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** The most recently coded instruction was an OP_Column to retrieve the ** i-th column of table pTab. This routine sets the P3 parameter of the ** OP_Column to the default value, if any. |
︙ | ︙ |
Changes to SQLite.Interop/src/utf.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains routines used to translate between UTF-8, ** UTF-16, UTF-16BE, and UTF-16LE. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains routines used to translate between UTF-8, ** UTF-16, UTF-16BE, and UTF-16LE. ** ** $Id: utf.c,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ ** ** Notes on UTF-8: ** ** Byte-0 Byte-1 Byte-2 Byte-3 Value ** 0xxxxxxx 00000000 00000000 0xxxxxxx ** 110yyyyy 10xxxxxx 00000000 00000yyy yyxxxxxx ** 1110zzzz 10yyyyyy 10xxxxxx 00000000 zzzzyyyy yyxxxxxx |
︙ | ︙ | |||
475 476 477 478 479 480 481 482 483 484 485 486 487 488 | ** in pZ (or up until the first pair of 0x00 bytes, whichever comes first). */ int sqlite3utf16ByteLen(const void *zIn, int nChar){ int c = 1; char const *z = zIn; int n = 0; if( SQLITE_UTF16NATIVE==SQLITE_UTF16BE ){ while( c && ((nChar<0) || n<nChar) ){ READ_UTF16BE(z, c); n++; } }else{ while( c && ((nChar<0) || n<nChar) ){ READ_UTF16LE(z, c); | > > > > > > > > > | 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 | ** in pZ (or up until the first pair of 0x00 bytes, whichever comes first). */ int sqlite3utf16ByteLen(const void *zIn, int nChar){ int c = 1; char const *z = zIn; int n = 0; if( SQLITE_UTF16NATIVE==SQLITE_UTF16BE ){ /* Using an "if (SQLITE_UTF16NATIVE==SQLITE_UTF16BE)" construct here ** and in other parts of this file means that at one branch will ** not be covered by coverage testing on any single host. But coverage ** will be complete if the tests are run on both a little-endian and ** big-endian host. Because both the UTF16NATIVE and SQLITE_UTF16BE ** macros are constant at compile time the compiler can determine ** which branch will be followed. It is therefore assumed that no runtime ** penalty is paid for this "if" statement. */ while( c && ((nChar<0) || n<nChar) ){ READ_UTF16BE(z, c); n++; } }else{ while( c && ((nChar<0) || n<nChar) ){ READ_UTF16LE(z, c); |
︙ | ︙ |
Changes to SQLite.Interop/src/util.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** Utility functions used throughout sqlite. ** ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** Utility functions used throughout sqlite. ** ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** ** $Id: util.c,v 1.18 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <stdarg.h> #include <ctype.h> /* |
︙ | ︙ |
Changes to SQLite.Interop/src/vacuum.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** This file contains code used to implement the VACUUM command. ** ** Most of the code in this file may be omitted by defining the ** SQLITE_OMIT_VACUUM macro. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** This file contains code used to implement the VACUUM command. ** ** Most of the code in this file may be omitted by defining the ** SQLITE_OMIT_VACUUM macro. ** ** $Id: vacuum.c,v 1.18 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "vdbeInt.h" #include "os.h" #ifndef SQLITE_OMIT_VACUUM /* |
︙ | ︙ |
Changes to SQLite.Interop/src/vdbe.c.
︙ | ︙ | |||
39 40 41 42 43 44 45 | ** ** Various scripts scan this source file in order to generate HTML ** documentation, headers files, or other derived files. The formatting ** of the code in this file is, therefore, important. See other comments ** in this file for details. If in doubt, do not deviate from existing ** commenting and indentation practices when changing or adding code. ** | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | ** ** Various scripts scan this source file in order to generate HTML ** documentation, headers files, or other derived files. The formatting ** of the code in this file is, therefore, important. See other comments ** in this file for details. If in doubt, do not deviate from existing ** commenting and indentation practices when changing or adding code. ** ** $Id: vdbe.c,v 1.18 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> #include "vdbeInt.h" /* |
︙ | ︙ | |||
2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 | db->flags |= SQLITE_InternChanges; }else if( pOp->p2==1 ){ /* Record changes in the file format */ pDb->pSchema->file_format = pTos->i; } assert( (pTos->flags & MEM_Dyn)==0 ); pTos--; break; } /* Opcode: VerifyCookie P1 P2 * ** ** Check the value of global database parameter number 0 (the ** schema version) and make sure it is equal to P2. | > > > > > | 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 | db->flags |= SQLITE_InternChanges; }else if( pOp->p2==1 ){ /* Record changes in the file format */ pDb->pSchema->file_format = pTos->i; } assert( (pTos->flags & MEM_Dyn)==0 ); pTos--; if( pOp->p1==1 ){ /* Invalidate all prepared statements whenever the TEMP database ** schema is changed. Ticket #1644 */ sqlite3ExpirePreparedStatements(db); } break; } /* Opcode: VerifyCookie P1 P2 * ** ** Check the value of global database parameter number 0 (the ** schema version) and make sure it is equal to P2. |
︙ | ︙ | |||
2967 2968 2969 2970 2971 2972 2973 | assert( (pTos->flags & MEM_Dyn)==0 ); pTos--; assert( i>=0 && i<=p->nCursor ); pCx = p->apCsr[i]; assert( pCx!=0 ); pCrsr = pCx->pCursor; if( pCrsr!=0 ){ | | | 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 | assert( (pTos->flags & MEM_Dyn)==0 ); pTos--; assert( i>=0 && i<=p->nCursor ); pCx = p->apCsr[i]; assert( pCx!=0 ); pCrsr = pCx->pCursor; if( pCrsr!=0 ){ int res; i64 v; /* The record number on the P1 entry that matches K */ char *zKey; /* The value of K */ int nKey; /* Number of bytes in K */ int len; /* Number of bytes in K without the rowid at the end */ int szRowid; /* Size of the rowid column at the end of zKey */ /* Make sure K is a string and make zKey point to K |
︙ | ︙ | |||
2989 2990 2991 2992 2993 2994 2995 | /* Search for an entry in P1 where all but the last four bytes match K. ** If there is no such entry, jump immediately to P2. */ assert( pCx->deferredMoveto==0 ); pCx->cacheStatus = CACHE_STALE; rc = sqlite3BtreeMoveto(pCrsr, zKey, len, &res); | | > > | 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 | /* Search for an entry in P1 where all but the last four bytes match K. ** If there is no such entry, jump immediately to P2. */ assert( pCx->deferredMoveto==0 ); pCx->cacheStatus = CACHE_STALE; rc = sqlite3BtreeMoveto(pCrsr, zKey, len, &res); if( rc!=SQLITE_OK ){ goto abort_due_to_error; } if( res<0 ){ rc = sqlite3BtreeNext(pCrsr, &res); if( res ){ pc = pOp->p2 - 1; break; } } |
︙ | ︙ |
Changes to SQLite.Interop/src/vdbe.h.
︙ | ︙ | |||
11 12 13 14 15 16 17 | ************************************************************************* ** Header file for the Virtual DataBase Engine (VDBE) ** ** This header defines the interface to the virtual database engine ** or VDBE. The VDBE implements an abstract machine that runs a ** simple program to access and modify the underlying database. ** | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ************************************************************************* ** Header file for the Virtual DataBase Engine (VDBE) ** ** This header defines the interface to the virtual database engine ** or VDBE. The VDBE implements an abstract machine that runs a ** simple program to access and modify the underlying database. ** ** $Id: vdbe.h,v 1.17 2006/01/31 19:16:13 rmsimpson Exp $ */ #ifndef _SQLITE_VDBE_H_ #define _SQLITE_VDBE_H_ #include <stdio.h> /* ** A single VDBE is an opaque structure named "Vdbe". Only routines |
︙ | ︙ |
Changes to SQLite.Interop/src/vdbeaux.c.
︙ | ︙ | |||
54 55 56 57 58 59 60 | void sqlite3VdbeTrace(Vdbe *p, FILE *trace){ p->trace = trace; } /* ** Resize the Vdbe.aOp array so that it contains at least N ** elements. If the Vdbe is in VDBE_MAGIC_RUN state, then | | | > > > > > > | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | void sqlite3VdbeTrace(Vdbe *p, FILE *trace){ p->trace = trace; } /* ** Resize the Vdbe.aOp array so that it contains at least N ** elements. If the Vdbe is in VDBE_MAGIC_RUN state, then ** the Vdbe.aOp array will be sized to contain exactly N ** elements. Vdbe.nOpAlloc is set to reflect the new size of ** the array. ** ** If an out-of-memory error occurs while resizing the array, ** Vdbe.aOp and Vdbe.nOpAlloc remain unchanged (this is so that ** any opcodes already allocated can be correctly deallocated ** along with the rest of the Vdbe). */ static void resizeOpArray(Vdbe *p, int N){ int runMode = p->magic==VDBE_MAGIC_RUN; if( runMode || p->nOpAlloc<N ){ VdbeOp *pNew; int nNew = N + 100*(!runMode); int oldSize = p->nOpAlloc; |
︙ | ︙ | |||
98 99 100 101 102 103 104 | int i; VdbeOp *pOp; i = p->nOp; p->nOp++; assert( p->magic==VDBE_MAGIC_INIT ); resizeOpArray(p, i+1); | | | 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | int i; VdbeOp *pOp; i = p->nOp; p->nOp++; assert( p->magic==VDBE_MAGIC_INIT ); resizeOpArray(p, i+1); if( sqlite3MallocFailed() ){ return 0; } pOp = &p->aOp[i]; pOp->opcode = op; pOp->p1 = p1; pOp->p2 = p2; pOp->p3 = 0; |
︙ | ︙ | |||
1097 1098 1099 1100 1101 1102 1103 | /* ** Find every active VM other than pVdbe and change its status to ** aborted. This happens when one VM causes a rollback due to an ** ON CONFLICT ROLLBACK clause (for example). The other VMs must be ** aborted so that they do not have data rolled out from underneath ** them leading to a segfault. */ | | | | | 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 | /* ** Find every active VM other than pVdbe and change its status to ** aborted. This happens when one VM causes a rollback due to an ** ON CONFLICT ROLLBACK clause (for example). The other VMs must be ** aborted so that they do not have data rolled out from underneath ** them leading to a segfault. */ void sqlite3AbortOtherActiveVdbes(sqlite3 *db, Vdbe *pExcept){ Vdbe *pOther; for(pOther=db->pVdbe; pOther; pOther=pOther->pNext){ if( pOther==pExcept ) continue; if( pOther->magic!=VDBE_MAGIC_RUN || pOther->pc<0 ) continue; closeAllCursors(pOther); pOther->aborted = 1; } } /* |
︙ | ︙ | |||
1233 1234 1235 1236 1237 1238 1239 | if( !isReadOnly ){ if( p->rc==SQLITE_NOMEM && isStatement ){ xFunc = sqlite3BtreeRollbackStmt; }else{ /* We are forced to roll back the active transaction. Before doing ** so, abort any other statements this handle currently has active. */ | | | 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 | if( !isReadOnly ){ if( p->rc==SQLITE_NOMEM && isStatement ){ xFunc = sqlite3BtreeRollbackStmt; }else{ /* We are forced to roll back the active transaction. Before doing ** so, abort any other statements this handle currently has active. */ sqlite3AbortOtherActiveVdbes(db, p); sqlite3RollbackAll(db); db->autoCommit = 1; } } } /* If the auto-commit flag is set and this is the only active vdbe, then |
︙ | ︙ | |||
1270 1271 1272 1273 1274 1275 1276 | } }else if( !xFunc ){ if( p->rc==SQLITE_OK || p->errorAction==OE_Fail ){ xFunc = sqlite3BtreeCommitStmt; }else if( p->errorAction==OE_Abort ){ xFunc = sqlite3BtreeRollbackStmt; }else{ | | | 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 | } }else if( !xFunc ){ if( p->rc==SQLITE_OK || p->errorAction==OE_Fail ){ xFunc = sqlite3BtreeCommitStmt; }else if( p->errorAction==OE_Abort ){ xFunc = sqlite3BtreeRollbackStmt; }else{ sqlite3AbortOtherActiveVdbes(db, p); sqlite3RollbackAll(db); db->autoCommit = 1; } } /* If xFunc is not NULL, then it is one of sqlite3BtreeRollbackStmt or ** sqlite3BtreeCommitStmt. Call it once on each backend. If an error occurs |
︙ | ︙ |
Changes to SQLite.Interop/src/where.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** This module contains C code that generates VDBE code used to process ** the WHERE clause of SQL statements. This module is reponsible for ** generating the code that loops through a table looking for applicable ** rows. Indices are selected and used to speed the search when doing ** so is applicable. Because this module is responsible for selecting ** indices, you might also think of this module as the "query optimizer". ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** This module contains C code that generates VDBE code used to process ** the WHERE clause of SQL statements. This module is reponsible for ** generating the code that loops through a table looking for applicable ** rows. Indices are selected and used to speed the search when doing ** so is applicable. Because this module is responsible for selecting ** indices, you might also think of this module as the "query optimizer". ** ** $Id: where.c,v 1.19 2006/01/31 19:16:13 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** The number of bits in a Bitmask. "BMS" means "BitMask Size". */ #define BMS (sizeof(Bitmask)*8) |
︙ | ︙ | |||
420 421 422 423 424 425 426 | && pTerm->leftColumn==iColumn && (pTerm->eOperator & op)!=0 ){ if( iCur>=0 && pIdx ){ Expr *pX = pTerm->pExpr; CollSeq *pColl; char idxaff; | | | | | | 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | && pTerm->leftColumn==iColumn && (pTerm->eOperator & op)!=0 ){ if( iCur>=0 && pIdx ){ Expr *pX = pTerm->pExpr; CollSeq *pColl; char idxaff; int j; Parse *pParse = pWC->pParse; idxaff = pIdx->pTable->aCol[iColumn].affinity; if( !sqlite3IndexAffinityOk(pX, idxaff) ) continue; pColl = sqlite3ExprCollSeq(pParse, pX->pLeft); if( !pColl ){ if( pX->pRight ){ pColl = sqlite3ExprCollSeq(pParse, pX->pRight); } if( !pColl ){ pColl = pParse->db->pDfltColl; } } for(j=0; j<pIdx->nColumn && pIdx->aiColumn[j]!=iColumn; j++){} assert( j<pIdx->nColumn ); if( sqlite3StrICmp(pColl->zName, pIdx->azColl[j]) ) continue; } return pTerm; } } return 0; } |
︙ | ︙ | |||
2081 2082 2083 2084 2085 2086 2087 | ** Calls to the code generator in between sqlite3WhereBegin and ** sqlite3WhereEnd will have created code that references the table ** directly. This loop scans all that code looking for opcodes ** that reference the table and converts them into opcodes that ** reference the index. */ if( pLevel->flags & WHERE_IDX_ONLY ){ | | | | 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 | ** Calls to the code generator in between sqlite3WhereBegin and ** sqlite3WhereEnd will have created code that references the table ** directly. This loop scans all that code looking for opcodes ** that reference the table and converts them into opcodes that ** reference the index. */ if( pLevel->flags & WHERE_IDX_ONLY ){ int k, j, last; VdbeOp *pOp; Index *pIdx = pLevel->pIdx; assert( pIdx!=0 ); pOp = sqlite3VdbeGetOp(v, pWInfo->iTop); last = sqlite3VdbeCurrentAddr(v); for(k=pWInfo->iTop; k<last; k++, pOp++){ if( pOp->p1!=pLevel->iTabCur ) continue; if( pOp->opcode==OP_Column ){ pOp->p1 = pLevel->iIdxCur; for(j=0; j<pIdx->nColumn; j++){ if( pOp->p2==pIdx->aiColumn[j] ){ pOp->p2 = j; break; |
︙ | ︙ |
Changes to SQLite.NET.suo.
cannot compute difference between binary files
Changes to System.Data.SQLite/AssemblyInfo.cs.
︙ | ︙ | |||
35 36 37 38 39 40 41 | // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: | | | | 35 36 37 38 39 40 41 42 43 44 45 | // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.25.0")] #if !PLATFORM_COMPACTFRAMEWORK [assembly: AssemblyFileVersion("1.0.25.0")] #endif |
Changes to System.Data.SQLite/SQLiteConnection.cs.
︙ | ︙ | |||
579 580 581 582 583 584 585 586 587 588 589 590 591 592 | ls.CopyTo(ar, 0); // Return the array of key-value pairs return ar; } #if !PLATFORM_COMPACTFRAMEWORK public override void EnlistTransaction(System.Transactions.Transaction transaction) { if (_transactionLevel > 0 && transaction != null) throw new ArgumentException("Unable to enlist in transaction, a local transaction already exists"); if (_enlisted == true) throw new ArgumentException("Already enlisted in a transaction"); | > > > > | 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 | ls.CopyTo(ar, 0); // Return the array of key-value pairs return ar; } #if !PLATFORM_COMPACTFRAMEWORK /// <summary> /// Manual distributed transaction enlistment support /// </summary> /// <param name="transaction">The distributed transaction to enlist in</param> public override void EnlistTransaction(System.Transactions.Transaction transaction) { if (_transactionLevel > 0 && transaction != null) throw new ArgumentException("Unable to enlist in transaction, a local transaction already exists"); if (_enlisted == true) throw new ArgumentException("Already enlisted in a transaction"); |
︙ | ︙ | |||
773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 | /// <list type="bullet"> /// <item> /// <description>MetaDataCollections</description> /// </item> /// <item> /// <description>DataSourceInformation</description> /// </item> /// <item> /// <description>Columns</description> /// </item> /// <item> /// <description>Indexes</description> /// </item> /// <item> /// <description>Tables</description> /// </item> /// <item> /// <description>Views</description> /// </item> /// <item> | > > > > > > > > > | | 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 | /// <list type="bullet"> /// <item> /// <description>MetaDataCollections</description> /// </item> /// <item> /// <description>DataSourceInformation</description> /// </item> /// <item> /// <description>Catalogs</description> /// </item> /// <item> /// <description>Columns</description> /// </item> /// <item> /// <description>ForeignKeys</description> /// </item> /// <item> /// <description>Indexes</description> /// </item> /// <item> /// <description>IndexColumns</description> /// </item> /// <item> /// <description>Tables</description> /// </item> /// <item> /// <description>Views</description> /// </item> /// <item> /// <description>ViewColumns</description> /// </item> /// </list> /// </overloads> /// <summary> /// Returns the MetaDataCollections schema /// </summary> /// <returns>A DataTable of the MetaDataCollections schema</returns> |
︙ | ︙ |
Changes to System.Data.SQLite/System.Data.SQLite.
︙ | ︙ | |||
36 37 38 39 40 41 42 43 44 45 46 47 48 49 | <PlatformTarget>AnyCPU</PlatformTarget> <CodeAnalysisRuleAssemblies>C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules</CodeAnalysisRuleAssemblies> <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> <ErrorReport>prompt</ErrorReport> <FileAlignment>512</FileAlignment> </PropertyGroup> <ItemGroup> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Transactions" /> <Reference Include="System.Xml" /> </ItemGroup> | > | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | <PlatformTarget>AnyCPU</PlatformTarget> <CodeAnalysisRuleAssemblies>C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules</CodeAnalysisRuleAssemblies> <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> <ErrorReport>prompt</ErrorReport> <FileAlignment>512</FileAlignment> <DocumentationFile>bin\System.Data.SQLite.XML</DocumentationFile> </PropertyGroup> <ItemGroup> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Transactions" /> <Reference Include="System.Xml" /> </ItemGroup> |
︙ | ︙ | |||
68 69 70 71 72 73 74 75 76 77 78 79 80 81 | </Compile> <Compile Include="SQLiteDataReader.cs" /> <Compile Include="SQLiteEnlistment.cs" /> <Compile Include="SQLiteException.cs" /> <Compile Include="SQLiteFactory.cs" /> <Compile Include="SQLiteFunction.cs" /> <Compile Include="SQLiteFunctionAttribute.cs" /> <Compile Include="SQLiteParameter.cs" /> <Compile Include="SQLiteParameterCollection.cs" /> <Compile Include="SQLiteStatement.cs" /> <Compile Include="SQLiteTransaction.cs" /> <Compile Include="SR.Designer.cs"> <DependentUpon>SR.resx</DependentUpon> <AutoGen>True</AutoGen> | > | 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | </Compile> <Compile Include="SQLiteDataReader.cs" /> <Compile Include="SQLiteEnlistment.cs" /> <Compile Include="SQLiteException.cs" /> <Compile Include="SQLiteFactory.cs" /> <Compile Include="SQLiteFunction.cs" /> <Compile Include="SQLiteFunctionAttribute.cs" /> <Compile Include="SQLiteMetaDataCollectionNames.cs" /> <Compile Include="SQLiteParameter.cs" /> <Compile Include="SQLiteParameterCollection.cs" /> <Compile Include="SQLiteStatement.cs" /> <Compile Include="SQLiteTransaction.cs" /> <Compile Include="SR.Designer.cs"> <DependentUpon>SR.resx</DependentUpon> <AutoGen>True</AutoGen> |
︙ | ︙ |
Changes to bin/CompactFramework/System.Data.SQLite.DLL.
cannot compute difference between binary files
Changes to bin/CompactFramework/testce.exe.
cannot compute difference between binary files
Changes to bin/Designer/SQLite.Designer.dll.
cannot compute difference between binary files
Added bin/System.Data.SQLite.XML.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 | <?xml version="1.0"?> <doc> <assembly> <name>System.Data.SQLite</name> </assembly> <members> <member name="T:System.Data.SQLite.SQLiteDataAdapter"> <summary> SQLite implementation of DbDataAdapter. </summary> </member> <member name="M:System.Data.SQLite.SQLiteDataAdapter.#ctor"> <overloads> This class is just a shell around the DbDataAdapter. Nothing from DbDataAdapter is overridden here, just a few constructors are defined. </overloads> <summary> Default constructor. </summary> </member> <member name="M:System.Data.SQLite.SQLiteDataAdapter.#ctor(System.Data.SQLite.SQLiteCommand)"> <summary> Constructs a data adapter using the specified select command. </summary> <param name="cmd">The select command to associate with the adapter.</param> </member> <member name="M:System.Data.SQLite.SQLiteDataAdapter.#ctor(System.String,System.Data.SQLite.SQLiteConnection)"> <summary> Constructs a data adapter with the supplied select command text and associated with the specified connection. </summary> <param name="commandText">The select command text to associate with the data adapter.</param> <param name="cnn">The connection to associate with the select command.</param> </member> <member name="M:System.Data.SQLite.SQLiteDataAdapter.#ctor(System.String,System.String)"> <summary> Constructs a data adapter with the specified select command text, and using the specified database connection string. </summary> <param name="commandText">The select command text to use to construct a select command.</param> <param name="connectionString">A connection string suitable for passing to a new SQLiteConnection, which is associated with the select command.</param> </member> <member name="M:System.Data.SQLite.SQLiteDataAdapter.OnRowUpdating(System.Data.Common.RowUpdatingEventArgs)"> <summary> Raised by the underlying DbDataAdapter when a row is being updated </summary> <param name="value">The event's specifics</param> </member> <member name="M:System.Data.SQLite.SQLiteDataAdapter.OnRowUpdated(System.Data.Common.RowUpdatedEventArgs)"> <summary> Raised by DbDataAdapter after a row is updated </summary> <param name="value">The event's specifics</param> </member> <member name="E:System.Data.SQLite.SQLiteDataAdapter.RowUpdating"> <summary> Row updating event handler </summary> </member> <member name="E:System.Data.SQLite.SQLiteDataAdapter.RowUpdated"> <summary> Row updated event handler </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataAdapter.SelectCommand"> <summary> Gets/sets the select command for this DataAdapter </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataAdapter.InsertCommand"> <summary> Gets/sets the insert command for this DataAdapter </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataAdapter.UpdateCommand"> <summary> Gets/sets the update command for this DataAdapter </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataAdapter.DeleteCommand"> <summary> Gets/sets the delete command for this DataAdapter </summary> </member> <member name="T:System.Data.SQLite.TypeAffinity"> <summary> SQLite has very limited types, and is inherently text-based. The first 5 types below represent the sum of all types SQLite understands. The DateTime extension to the spec is for internal use only. </summary> </member> <member name="F:System.Data.SQLite.TypeAffinity.Uninitialized"> <summary> Not used </summary> </member> <member name="F:System.Data.SQLite.TypeAffinity.Int64"> <summary> All integers in SQLite default to Int64 </summary> </member> <member name="F:System.Data.SQLite.TypeAffinity.Double"> <summary> All floating point numbers in SQLite default to double </summary> </member> <member name="F:System.Data.SQLite.TypeAffinity.Text"> <summary> The default data type of SQLite is text </summary> </member> <member name="F:System.Data.SQLite.TypeAffinity.Blob"> <summary> Typically blob types are only seen when returned from a function </summary> </member> <member name="F:System.Data.SQLite.TypeAffinity.Null"> <summary> Null types can be returned from functions </summary> </member> <member name="F:System.Data.SQLite.TypeAffinity.DateTime"> <summary> Used internally by this provider </summary> </member> <member name="F:System.Data.SQLite.TypeAffinity.None"> <summary> Used internally </summary> </member> <member name="T:System.Data.SQLite.SQLiteDateFormats"> <summary> This implementation of SQLite for ADO.NET can process date/time fields in databases in only one of two formats. Ticks and ISO8601. Ticks is inherently more accurate, but less compatible with 3rd party tools that query the database, and renders the DateTime field unreadable without post-processing. ISO8601 is more compatible, readable, fully-processable, but less accurate as it doesn't provide time down to fractions of a second. </summary> </member> <member name="F:System.Data.SQLite.SQLiteDateFormats.Ticks"> <summary> Using ticks is more accurate but less compatible with other viewers and utilities that access your database. </summary> </member> <member name="F:System.Data.SQLite.SQLiteDateFormats.ISO8601"> <summary> The default format for this provider. More compatible with SQLite's intended usage of datetimes, but overall less accurate than Ticks as it doesn't natively support times down to fractions of a second. </summary> </member> <member name="T:System.Data.SQLite.SQLiteType"> <summary> Struct used internally to determine the datatype of a column in a resultset </summary> </member> <member name="F:System.Data.SQLite.SQLiteType.Type"> <summary> The DbType of the column, or DbType.Object if it cannot be determined </summary> </member> <member name="F:System.Data.SQLite.SQLiteType.Affinity"> <summary> The affinity of a column, used for expressions or when Type is DbType.Object </summary> </member> <member name="T:System.Data.SQLite.SQLiteConvert"> <summary> This base class provides datatype conversion services for the SQLite provider. </summary> </member> <member name="F:System.Data.SQLite.SQLiteConvert._datetimeFormats"> <summary> An array of ISO8601 datetime formats we support conversion from </summary> </member> <member name="F:System.Data.SQLite.SQLiteConvert._utf8"> <summary> An UTF-8 Encoding instance, so we can convert strings to and from UTF-8 </summary> </member> <member name="F:System.Data.SQLite.SQLiteConvert._datetimeFormat"> <summary> The default DateTime format for this instance </summary> </member> <member name="M:System.Data.SQLite.SQLiteConvert.#ctor(System.Data.SQLite.SQLiteDateFormats)"> <summary> Initializes the conversion class </summary> <param name="fmt">The default date/time format to use for this instance</param> </member> <member name="M:System.Data.SQLite.SQLiteConvert.ToUTF8(System.String)"> <summary> Converts a string to a UTF-8 encoded byte array sized to include a null-terminating character. </summary> <param name="sourceText">The string to convert to UTF-8</param> <returns>A byte array containing the converted string plus an extra 0 terminating byte at the end of the array.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.ToUTF8(System.DateTime)"> <summary> Convert a DateTime to a UTF-8 encoded, zero-terminated byte array. </summary> <remarks> This function is a convenience function, which first calls ToString() on the DateTime, and then calls ToUTF8() with the string result. </remarks> <param name="dateTimeValue">The DateTime to convert.</param> <returns>The UTF-8 encoded string, including a 0 terminating byte at the end of the array.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.ToString(System.IntPtr,System.Int32)"> <summary> Converts a UTF-8 encoded IntPtr of the specified length into a .NET string </summary> <param name="nativestring">The pointer to the memory where the UTF-8 string is encoded</param> <param name="nativestringlen">The number of bytes to decode</param> <returns>A string containing the translated character(s)</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.ToDateTime(System.String)"> <summary> Converts a string into a DateTime, using the current DateTimeFormat specified for the connection when it was opened. </summary> <remarks> Acceptable ISO8601 DateTime formats are: yyyy-MM-dd HH:mm:ss yyyyMMddHHmmss yyyyMMddTHHmmssfffffff yyyy-MM-dd yy-MM-dd yyyyMMdd HH:mm:ss THHmmss </remarks> <param name="dateText">The string containing either a Tick value or an ISO8601-format string</param> <returns>A DateTime value</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.ToString(System.DateTime)"> <summary> Converts a DateTime to a string value, using the current DateTimeFormat specified for the connection when it was opened. </summary> <param name="dateValue">The DateTime value to convert</param> <returns>Either a string consisting of the tick count for DateTimeFormat.Ticks, or a date/time in ISO8601 format.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.ToDateTime(System.IntPtr,System.Int32)"> <summary> Internal function to convert a UTF-8 encoded IntPtr of the specified length to a DateTime. </summary> <remarks> This is a convenience function, which first calls ToString() on the IntPtr to convert it to a string, then calls ToDateTime() on the string to return a DateTime. </remarks> <param name="ptr">A pointer to the UTF-8 encoded string</param> <param name="len">The length in bytes of the string</param> <returns>The parsed DateTime value</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.Split(System.String,System.Char)"> <summary> Smart method of splitting a string. Skips quoted elements, removes the quotes. </summary> <remarks> This split function works somewhat like the String.Split() function in that it breaks apart a string into pieces and returns the pieces as an array. The primary differences are: <list type="bullet"> <item><description>Only one character can be provided as a separator character</description></item> <item><description>Quoted text inside the string is skipped over when searching for the separator, and the quotes are removed.</description></item> </list> Thus, if splitting the following string looking for a comma:<br/> One,Two, "Three, Four", Five<br/> <br/> The resulting array would contain<br/> [0] One<br/> [1] Two<br/> [2] Three, Four<br/> [3] Five<br/> <br/> Note that the leading and trailing spaces were removed from each item during the split. </remarks> <param name="source">Source string to split apart</param> <param name="separator">Separator character</param> <returns>A string array of the split up elements</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.ColumnToType(System.Data.SQLite.SQLiteStatement,System.Int32)"> <summary> Determines the data type of a column in a statement </summary> <param name="stmt">The statement to retrieve information for</param> <param name="i">The column to retrieve type information on</param> <returns>Returns a SQLiteType struct</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.SQLiteTypeToType(System.Data.SQLite.SQLiteType)"> <summary> Converts a SQLiteType to a .NET Type object </summary> <param name="t">The SQLiteType to convert</param> <returns>Returns a .NET Type object</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.TypeToDbType(System.Type)"> <summary> For a given intrinsic type, return a DbType </summary> <param name="typ">The native type to convert</param> <returns>The corresponding (closest match) DbType</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.DbTypeToType(System.Data.DbType)"> <summary> Convert a DbType to a Type </summary> <param name="typ">The DbType to convert from</param> <returns>The closest-match .NET type</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.TypeToAffinity(System.Type)"> <summary> For a given type, return the closest-match SQLite TypeAffinity, which only understands a very limited subset of types. </summary> <param name="typ">The type to evaluate</param> <returns>The SQLite type affinity for that type.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConvert.TypeNameToDbType(System.String)"> <summary> For a given type name, return a closest-match .NET type </summary> <param name="Name">The name of the type to match</param> <returns>The .NET DBType the text evaluates to.</returns> </member> <member name="T:System.Data.SQLite.SQLiteTransaction"> <summary> SQLite implementation of DbTransaction. </summary> </member> <member name="F:System.Data.SQLite.SQLiteTransaction._cnn"> <summary> The connection to which this transaction is bound </summary> </member> <member name="M:System.Data.SQLite.SQLiteTransaction.#ctor(System.Data.SQLite.SQLiteConnection,System.Boolean)"> <summary> Constructs the transaction object, binding it to the supplied connection </summary> <param name="cnn">The connection to open a transaction on</param> <param name="deferredLock">TRUE to defer the writelock, or FALSE to lock immediately</param> </member> <member name="M:System.Data.SQLite.SQLiteTransaction.Commit"> <summary> Commits the current transaction. </summary> </member> <member name="M:System.Data.SQLite.SQLiteTransaction.Dispose(System.Boolean)"> <summary> Disposes the transaction. If it is currently active, any changes are rolled back. </summary> </member> <member name="M:System.Data.SQLite.SQLiteTransaction.Rollback"> <summary> Rolls back the active transaction. </summary> </member> <member name="P:System.Data.SQLite.SQLiteTransaction.Connection"> <summary> Returns the underlying connection to which this transaction applies. </summary> </member> <member name="P:System.Data.SQLite.SQLiteTransaction.DbConnection"> <summary> Forwards to the local Connection property </summary> </member> <member name="P:System.Data.SQLite.SQLiteTransaction.IsolationLevel"> <summary> Gets the isolation level of the transaction. SQLite does not support isolation levels, so this always returns Unspecified. </summary> </member> <member name="T:System.Data.SQLite.FunctionType"> <summary> The type of user-defined function to declare </summary> </member> <member name="F:System.Data.SQLite.FunctionType.Scalar"> <summary> Scalar functions are designed to be called and return a result immediately. Examples include ABS(), Upper(), Lower(), etc. </summary> </member> <member name="F:System.Data.SQLite.FunctionType.Aggregate"> <summary> Aggregate functions are designed to accumulate data until the end of a call and then return a result gleaned from the accumulated data. Examples include SUM(), COUNT(), AVG(), etc. </summary> </member> <member name="F:System.Data.SQLite.FunctionType.Collation"> <summary> Collation sequences are used to sort textual data in a custom manner, and appear in an ORDER BY clause. Typically text in an ORDER BY is sorted using a straight case-insensitive comparison function. Custom collating sequences can be used to alter the behavior of text sorting in a user-defined manner. </summary> </member> <member name="T:System.Data.SQLite.SQLiteCallback"> <summary> An internal callback delegate declaration. </summary> <param name="context">Raw context pointer for the user function</param> <param name="nArgs">Count of arguments to the function</param> <param name="argsptr">A pointer to the array of argument pointers</param> </member> <member name="T:System.Data.SQLite.SQLiteCollation"> <summary> Internal callback delegate for implementing collation sequences </summary> <param name="len1">Length of the string pv1</param> <param name="pv1">Pointer to the first string to compare</param> <param name="len2">Length of the string pv2</param> <param name="pv2">Pointer to the second string to compare</param> <returns>Returns -1 if the first string is less than the second. 0 if they are equal, or 1 if the first string is greater than the second.</returns> </member> <member name="T:System.Data.SQLite.SQLiteFunction"> <summary> This abstract class is designed to handle user-defined functions easily. An instance of the derived class is made for each connection to the database. </summary> <remarks> Although there is one instance of a class derived from SQLiteFunction per database connection, the derived class has no access to the underlying connection. This is necessary to deter implementers from thinking it would be a good idea to make database calls during processing. It is important to distinguish between a per-connection instance, and a per-SQL statement context. One instance of this class services all SQL statements being stepped through on that connection, and there can be many. One should never store per-statement information in member variables of user-defined function classes. For aggregate functions, always create and store your per-statement data in the contextData object on the 1st step. This data will be automatically freed for you (and Dispose() called if the item supports IDisposable) when the statement completes. </remarks> </member> <member name="F:System.Data.SQLite.SQLiteFunction._base"> <summary> The base connection this function is attached to </summary> </member> <member name="F:System.Data.SQLite.SQLiteFunction._interopCookie"> <summary> Used internally to keep track of memory allocated for aggregate functions </summary> </member> <member name="F:System.Data.SQLite.SQLiteFunction._contextDataList"> <summary> Internal array used to keep track of aggregate function context data </summary> </member> <member name="F:System.Data.SQLite.SQLiteFunction._InvokeFunc"> <summary> Holds a reference to the callback function for user functions </summary> </member> <member name="F:System.Data.SQLite.SQLiteFunction._StepFunc"> <summary> Holds a reference to the callbakc function for stepping in an aggregate function </summary> </member> <member name="F:System.Data.SQLite.SQLiteFunction._FinalFunc"> <summary> Holds a reference to the callback function for finalizing an aggregate function </summary> </member> <member name="F:System.Data.SQLite.SQLiteFunction._CompareFunc"> <summary> Holds a reference to the callback function for collation sequences </summary> </member> <member name="F:System.Data.SQLite.SQLiteFunction._registeredFunctions"> <summary> This static list contains all the user-defined functions declared using the proper attributes. </summary> </member> <member name="M:System.Data.SQLite.SQLiteFunction.#ctor"> <summary> Internal constructor, initializes the function's internal variables. </summary> </member> <member name="M:System.Data.SQLite.SQLiteFunction.Invoke(System.Object[])"> <summary> Scalar functions override this method to do their magic. </summary> <remarks> Parameters passed to functions have only an affinity for a certain data type, there is no underlying schema available to force them into a certain type. Therefore the only types you will ever see as parameters are DBNull.Value, Int64, Double, String or byte[] array. </remarks> <param name="args">The arguments for the command to process</param> <returns>You may return most simple types as a return value, null or DBNull.Value to return null, DateTime, or you may return an Exception-derived class if you wish to return an error to SQLite. Do not actually throw the error, just return it!</returns> </member> <member name="M:System.Data.SQLite.SQLiteFunction.Step(System.Object[],System.Int32,System.Object@)"> <summary> Aggregate functions override this method to do their magic. </summary> <remarks> Typically you'll be updating whatever you've placed in the contextData field and returning as quickly as possible. </remarks> <param name="args">The arguments for the command to process</param> <param name="stepNumber">The 1-based step number. This is incrememted each time the step method is called.</param> <param name="contextData">A placeholder for implementers to store contextual data pertaining to the current context.</param> </member> <member name="M:System.Data.SQLite.SQLiteFunction.Final(System.Object)"> <summary> Aggregate functions override this method to finish their aggregate processing. </summary> <remarks> If you implemented your aggregate function properly, you've been recording and keeping track of your data in the contextData object provided, and now at this stage you should have all the information you need in there to figure out what to return. NOTE: It is possible to arrive here without receiving a previous call to Step(), in which case the contextData will be null. This can happen when no rows were returned. You can either return null, or 0 or some other custom return value if that is the case. </remarks> <param name="contextData">Your own assigned contextData, provided for you so you can return your final results.</param> <returns>You may return most simple types as a return value, null or DBNull.Value to return null, DateTime, or you may return an Exception-derived class if you wish to return an error to SQLite. Do not actually throw the error, just return it! </returns> </member> <member name="M:System.Data.SQLite.SQLiteFunction.Compare(System.String,System.String)"> <summary> User-defined collation sequences override this method to provide a custom string sorting algorithm. </summary> <param name="param1">The first string to compare</param> <param name="param2">The second strnig to compare</param> <returns>1 if param1 is greater than param2, 0 if they are equal, or -1 if param1 is less than param2</returns> </member> <member name="M:System.Data.SQLite.SQLiteFunction.ConvertParams(System.Int32,System.IntPtr)"> <summary> Converts an IntPtr array of context arguments to an object array containing the resolved parameters the pointers point to. </summary> <remarks> Parameters passed to functions have only an affinity for a certain data type, there is no underlying schema available to force them into a certain type. Therefore the only types you will ever see as parameters are DBNull.Value, Int64, Double, String or byte[] array. </remarks> <param name="nArgs">The number of arguments</param> <param name="argsptr">A pointer to the array of arguments</param> <returns>An object array of the arguments once they've been converted to .NET values</returns> </member> <member name="M:System.Data.SQLite.SQLiteFunction.SetReturnValue(System.Int32,System.Object)"> <summary> Takes the return value from Invoke() and Final() and figures out how to return it to SQLite's context. </summary> <param name="context">The context the return value applies to</param> <param name="returnValue">The parameter to return to SQLite</param> </member> <member name="M:System.Data.SQLite.SQLiteFunction.ScalarCallback(System.Int32,System.Int32,System.IntPtr)"> <summary> Internal scalar callback function, which wraps the raw context pointer and calls the virtual Invoke() method. </summary> <param name="context">A raw context pointer</param> <param name="nArgs">Number of arguments passed in</param> <param name="argsptr">A pointer to the array of arguments</param> </member> <member name="M:System.Data.SQLite.SQLiteFunction.CompareCallback(System.Int32,System.IntPtr,System.Int32,System.IntPtr)"> <summary> Internal collation sequence function, which wraps up the raw string pointers and executes the Compare() virtual function. </summary> <param name="len1">Length of the string pv1</param> <param name="ptr1">Pointer to the first string to compare</param> <param name="len2">Length of the string pv2</param> <param name="ptr2">Pointer to the second string to compare</param> <returns>Returns -1 if the first string is less than the second. 0 if they are equal, or 1 if the first string is greater than the second.</returns> </member> <member name="M:System.Data.SQLite.SQLiteFunction.StepCallback(System.Int32,System.Int32,System.IntPtr)"> <summary> The internal aggregate Step function callback, which wraps the raw context pointer and calls the virtual Step() method. </summary> <remarks> This function takes care of doing the lookups and getting the important information put together to call the Step() function. That includes pulling out the user's contextData and updating it after the call is made. We use a sorted list for this so binary searches can be done to find the data. </remarks> <param name="context">A raw context pointer</param> <param name="nArgs">Number of arguments passed in</param> <param name="argsptr">A pointer to the array of arguments</param> </member> <member name="M:System.Data.SQLite.SQLiteFunction.FinalCallback(System.Int32,System.Int32,System.IntPtr)"> <summary> An internal aggregate Final function callback, which wraps the context pointer and calls the virtual Final() method. </summary> <param name="context">A raw context pointer</param> <param name="nArgs">Not used, always zero</param> <param name="argsptr">Not used, always zero</param> </member> <member name="M:System.Data.SQLite.SQLiteFunction.Dispose(System.Boolean)"> <summary> Placeholder for a user-defined disposal routine </summary> <param name="disposing">True if the object is being disposed explicitly</param> </member> <member name="M:System.Data.SQLite.SQLiteFunction.Dispose"> <summary> Disposes of any active contextData variables that were not automatically cleaned up. Sometimes this can happen if someone closes the connection while a DataReader is open. </summary> </member> <member name="M:System.Data.SQLite.SQLiteFunction.#cctor"> <summary> Using reflection, enumerate all assemblies in the current appdomain looking for classes that have a SQLiteFunctionAttribute attribute, and registering them accordingly. </summary> </member> <member name="M:System.Data.SQLite.SQLiteFunction.BindFunctions(System.Data.SQLite.SQLiteBase)"> <summary> Called by SQLiteBase derived classes, this function binds all user-defined functions to a connection. It is done this way so that all user-defined functions will access the database using the same encoding scheme as the connection (UTF-8 or UTF-16). </summary> <remarks> The wrapper functions that interop with SQLite will create a unique cooke value, which internally is a pointer to all the wrapped callback functions. The interop function uses it to map CDecl callbacks to StdCall callbacks. </remarks> <param name="sqlbase">The base object on which the functions are to bind</param> <returns>Returns an array of functions which the connection object should retain until the connection is closed.</returns> </member> <member name="M:System.Data.SQLite.SQLiteFunction.UnbindFunctions(System.Data.SQLite.SQLiteBase,System.Data.SQLite.SQLiteFunction[])"> <summary> Issued after the base connection is closed, this function cleans up all user-defined functions and disposes of them. </summary> <remarks> Cleaning up here is done mainly because of the interop wrapper. It allocated memory to hold a reference to all the delegates, and now must free that memory. Freeing is done after the connection is closed to ensure no callbacks get hit after we've freed the cookie. </remarks> <param name="sqlbase">The base SQLite connection object</param> <param name="ar">An array of user-defined functions for this object</param> </member> <member name="P:System.Data.SQLite.SQLiteFunction.SQLiteConvert"> <summary> Returns a reference to the underlying connection's SQLiteConvert class, which can be used to convert strings and DateTime's into the current connection's encoding schema. </summary> </member> <member name="T:System.Data.SQLite.SQLiteDataReader"> <summary> SQLite implementation of DbDataReader. </summary> </member> <member name="F:System.Data.SQLite.SQLiteDataReader._command"> <summary> Underlying command this reader is attached to </summary> </member> <member name="F:System.Data.SQLite.SQLiteDataReader._activeStatementIndex"> <summary> Index of the current statement in the command being processed </summary> </member> <member name="F:System.Data.SQLite.SQLiteDataReader._activeStatement"> <summary> Current statement being Read() </summary> </member> <member name="F:System.Data.SQLite.SQLiteDataReader._readingState"> <summary> State of the current statement being processed. -1 = First Step() executed, so the first Read() will be ignored 0 = Actively reading 1 = Finished reading 2 = Non-row-returning statement, no records </summary> </member> <member name="F:System.Data.SQLite.SQLiteDataReader._rowsAffected"> <summary> Number of records affected by the insert/update statements executed on the command </summary> </member> <member name="F:System.Data.SQLite.SQLiteDataReader._fieldCount"> <summary> Count of fields (columns) in the row-returning statement currently being processed </summary> </member> <member name="F:System.Data.SQLite.SQLiteDataReader._fieldTypeArray"> <summary> Datatypes of active fields (columns) in the current statement, used for type-restricting data </summary> </member> <member name="F:System.Data.SQLite.SQLiteDataReader._commandBehavior"> <summary> The behavior of the datareader </summary> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.#ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)"> <summary> Internal constructor, initializes the datareader and sets up to begin executing statements </summary> <param name="cmd">The SQLiteCommand this data reader is for</param> <param name="behave">The expected behavior of the data reader</param> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.Initialize"> <summary> Initializes and resets the datareader's member variables </summary> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.Close"> <summary> Closes the datareader, potentially closing the connection as well if CommandBehavior.CloseConnection was specified. </summary> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.Dispose(System.Boolean)"> <summary> Disposes the datareader. Calls Close() to ensure everything is cleaned up. </summary> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.CheckClosed"> <summary> Throw an error if the datareader is closed </summary> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.CheckValidRow"> <summary> Throw an error if a row is not loaded </summary> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetEnumerator"> <summary> Enumerator support </summary> <returns>Returns a DbEnumerator object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.VerifyType(System.Int32,System.Data.DbType)"> <summary> SQLite is inherently un-typed. All datatypes in SQLite are natively strings. The definition of the columns of a table and the affinity of returned types are all we have to go on to type-restrict data in the reader. This function attempts to verify that the type of data being requested of a column matches the datatype of the column. In the case of columns that are not backed into a table definition, we attempt to match up the affinity of a column (int, double, string or blob) to a set of known types that closely match that affinity. It's not an exact science, but its the best we can do. </summary> <returns> This function throws an InvalidTypeCast() exception if the requested type doesn't match the column's definition or affinity. </returns> <param name="i">The index of the column to type-check</param> <param name="typ">The type we want to get out of the column</param> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetBoolean(System.Int32)"> <summary> Retrieves the column as a boolean value </summary> <param name="i">The index of the column to retrieve</param> <returns>bool</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetByte(System.Int32)"> <summary> Retrieves the column as a single byte value </summary> <param name="i">The index of the column to retrieve</param> <returns>byte</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetBytes(System.Int32,System.Int64,System.Byte[],System.Int32,System.Int32)"> <summary> Retrieves a column as an array of bytes (blob) </summary> <param name="i">The index of the column to retrieve</param> <param name="fieldOffset">The zero-based index of where to begin reading the data</param> <param name="buffer">The buffer to write the bytes into</param> <param name="bufferoffset">The zero-based index of where to begin writing into the array</param> <param name="length">The number of bytes to retrieve</param> <returns>The actual number of bytes written into the array</returns> <remarks> To determine the number of bytes in the column, pass a null value for the buffer. The total length will be returned. </remarks> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetChar(System.Int32)"> <summary> Returns the column as a single character </summary> <param name="i">The index of the column to retrieve</param> <returns>char</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetChars(System.Int32,System.Int64,System.Char[],System.Int32,System.Int32)"> <summary> Retrieves a column as an array of chars (blob) </summary> <param name="i">The index of the column to retrieve</param> <param name="fieldoffset">The zero-based index of where to begin reading the data</param> <param name="buffer">The buffer to write the characters into</param> <param name="bufferoffset">The zero-based index of where to begin writing into the array</param> <param name="length">The number of bytes to retrieve</param> <returns>The actual number of characters written into the array</returns> <remarks> To determine the number of characters in the column, pass a null value for the buffer. The total length will be returned. </remarks> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetDataTypeName(System.Int32)"> <summary> Retrieves the name of the back-end datatype of the column </summary> <param name="i">The index of the column to retrieve</param> <returns>string</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetDateTime(System.Int32)"> <summary> Retrieve the column as a date/time value </summary> <param name="i">The index of the column to retrieve</param> <returns>DateTime</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetDecimal(System.Int32)"> <summary> Retrieve the column as a decimal value </summary> <param name="i">The index of the column to retrieve</param> <returns>decimal</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetDouble(System.Int32)"> <summary> Returns the column as a double </summary> <param name="i">The index of the column to retrieve</param> <returns>double</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetFieldType(System.Int32)"> <summary> Returns the .NET type of a given column </summary> <param name="i">The index of the column to retrieve</param> <returns>Type</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetFloat(System.Int32)"> <summary> Returns a column as a float value </summary> <param name="i">The index of the column to retrieve</param> <returns>float</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetGuid(System.Int32)"> <summary> Returns the column as a Guid </summary> <param name="i">The index of the column to retrieve</param> <returns>Guid</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetInt16(System.Int32)"> <summary> Returns the column as a short </summary> <param name="i">The index of the column to retrieve</param> <returns>Int16</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetInt32(System.Int32)"> <summary> Retrieves the column as an int </summary> <param name="i">The index of the column to retrieve</param> <returns>Int32</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetInt64(System.Int32)"> <summary> Retrieves the column as a long </summary> <param name="i">The index of the column to retrieve</param> <returns>Int64</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetName(System.Int32)"> <summary> Retrieves the name of the column </summary> <param name="i">The index of the column to retrieve</param> <returns>string</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetOrdinal(System.String)"> <summary> Retrieves the i of a column, given its name </summary> <param name="name">The name of the column to retrieve</param> <returns>The int i of the column</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetSchemaTable"> <summary> Schema information in SQLite is an iffy-business. We've extended the native SQLite3.DLL to include a special pragma called PRAGMA real_column_names When enabled, the pragma causes all column aliases to be ignored, and the full Database.Table.ColumnName to be returned for each column of a SELECT statement. Using this information it is then possible to query each database and table for the matching column, and associate it with the active statement. </summary> <remarks> The current connection is cloned for the sake of executing this statement, so as to avoid any possibility of corrupting the original connection's existing statements or state. Any attached databases are re-attached to the new connection. </remarks> <returns>Returns a DataTable containing the schema information for the active SELECT statement being processed.</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetString(System.Int32)"> <summary> Retrieves the column as a string </summary> <param name="i">The index of the column to retrieve</param> <returns>string</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetValue(System.Int32)"> <summary> Retrieves the column as an object corresponding to the underlying datatype of the column </summary> <param name="i">The index of the column to retrieve</param> <returns>object</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetValues(System.Object[])"> <summary> Retreives the values of multiple columns, up to the size of the supplied array </summary> <param name="values">The array to fill with values from the columns in the current resultset</param> <returns>The number of columns retrieved</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.IsDBNull(System.Int32)"> <summary> Returns True if the specified column is null </summary> <param name="i">The index of the column to retrieve</param> <returns>True or False</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.NextResult"> <summary> Moves to the next resultset in multiple row-returning SQL command. </summary> <returns>True if the command was successful and a new resultset is available, False otherwise.</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.GetSQLiteType(System.Int32)"> <summary> Retrieves the SQLiteType for a given column, and caches it to avoid repetetive interop calls. </summary> <param name="i">The index of the column to retrieve</param> <returns>A SQLiteType structure</returns> </member> <member name="M:System.Data.SQLite.SQLiteDataReader.Read"> <summary> Reads the next row from the resultset </summary> <returns>True if a new row was successfully loaded and is ready for processing</returns> </member> <member name="P:System.Data.SQLite.SQLiteDataReader.Depth"> <summary> Not implemented. Returns 0 </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataReader.FieldCount"> <summary> Returns the number of columns in the current resultset </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataReader.HasRows"> <summary> Returns True if the resultset has rows that can be fetched </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataReader.IsClosed"> <summary> Returns True if the data reader is closed </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataReader.RecordsAffected"> <summary> Retrieve the count of records affected by an update/insert command. Only valid once the data reader is closed! </summary> </member> <member name="P:System.Data.SQLite.SQLiteDataReader.Item(System.String)"> <summary> Indexer to retrieve data from a column given its name </summary> <param name="name">The name of the column to retrieve data for</param> <returns>The value contained in the column</returns> </member> <member name="P:System.Data.SQLite.SQLiteDataReader.Item(System.Int32)"> <summary> Indexer to retrieve data from a column given its i </summary> <param name="i">The index of the column to retrieve</param> <returns>The value contained in the column</returns> </member> <member name="T:System.Data.SQLite.SQLiteParameter"> <summary> SQLite implementation of DbParameter. </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameter._dbType"> <summary> The data type of the parameter </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameter._rowVersion"> <summary> The version information for mapping the parameter </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameter._objValue"> <summary> The value of the data in the parameter </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameter._sourceColumn"> <summary> The source column for the parameter </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameter._columnName"> <summary> The column name </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameter._dataSize"> <summary> The data size, unused by SQLite </summary> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor"> <summary> Default constructor </summary> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String)"> <summary> Constructs a named parameter given the specified parameter name </summary> <param name="parameterName">The parameter name</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String,System.Object)"> <summary> Constructs a named parameter given the specified parameter name and initial value </summary> <param name="parameterName">The parameter name</param> <param name="value">The initial value of the parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String,System.Data.DbType)"> <summary> Constructs a named parameter of the specified type </summary> <param name="parameterName">The parameter name</param> <param name="dbType">The datatype of the parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String,System.Data.DbType,System.String)"> <summary> Constructs a named parameter of the specified type and source column reference </summary> <param name="parameterName">The parameter name</param> <param name="dbType">The data type</param> <param name="sourceColumn">The source column</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String,System.Data.DbType,System.String,System.Data.DataRowVersion)"> <summary> Constructs a named parameter of the specified type, source column and row version </summary> <param name="parameterName">The parameter name</param> <param name="dbType">The data type</param> <param name="sourceColumn">The source column</param> <param name="rowVersion">The row version information</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.Data.DbType)"> <summary> Constructs an unnamed parameter of the specified data type </summary> <param name="dbType">The datatype of the parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.Data.DbType,System.Object)"> <summary> Constructs an unnamed parameter of the specified data type and sets the initial value </summary> <param name="dbType">The datatype of the parameter</param> <param name="value">The initial value of the parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.Data.DbType,System.String)"> <summary> Constructs an unnamed parameter of the specified data type and source column </summary> <param name="dbType">The datatype of the parameter</param> <param name="sourceColumn">The source column</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.Data.DbType,System.String,System.Data.DataRowVersion)"> <summary> Constructs an unnamed parameter of the specified data type, source column and row version </summary> <param name="dbType">The data type</param> <param name="sourceColumn">The source column</param> <param name="rowVersion">The row version information</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String,System.Data.DbType,System.Int32)"> <summary> Constructs a named parameter of the specified type and size </summary> <param name="parameterName">The parameter name</param> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String,System.Data.DbType,System.Int32,System.String)"> <summary> Constructs a named parameter of the specified type, size and source column </summary> <param name="parameterName">The name of the parameter</param> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the parameter</param> <param name="sourceColumn">The source column</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String,System.Data.DbType,System.Int32,System.String,System.Data.DataRowVersion)"> <summary> Constructs a named parameter of the specified type, size, source column and row version </summary> <param name="parameterName">The name of the parameter</param> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the parameter</param> <param name="sourceColumn">The source column</param> <param name="rowVersion">The row version information</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.String,System.Data.DbType,System.Int32,System.Data.ParameterDirection,System.Boolean,System.Byte,System.Byte,System.String,System.Data.DataRowVersion,System.Object)"> <summary> Constructs a named parameter of the specified type, size, source column and row version </summary> <param name="parameterName">The name of the parameter</param> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the parameter</param> <param name="direction">Only input parameters are supported in SQLite</param> <param name="isNullable">Ignored</param> <param name="precision">Ignored</param> <param name="scale">Ignored</param> <param name="sourceColumn">The source column</param> <param name="rowVersion">The row version information</param> <param name="value">The initial value to assign the parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.Data.DbType,System.Int32)"> <summary> Constructs an unnamed parameter of the specified type and size </summary> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.Data.DbType,System.Int32,System.String)"> <summary> Constructs an unnamed parameter of the specified type, size, and source column </summary> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the parameter</param> <param name="sourceColumn">The source column</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.#ctor(System.Data.DbType,System.Int32,System.String,System.Data.DataRowVersion)"> <summary> Constructs an unnamed parameter of the specified type, size, source column and row version </summary> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the parameter</param> <param name="sourceColumn">The source column</param> <param name="rowVersion">The row version information</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.Initialize(System.String,System.Int32,System.Int32,System.String,System.Data.DataRowVersion)"> <summary> Initializes the parameter member variables </summary> <param name="parameterName">The parameter name</param> <param name="paramType">The data type</param> <param name="nSize">The size</param> <param name="sourceColumn">The source column</param> <param name="rowVersion">The row version</param> </member> <member name="M:System.Data.SQLite.SQLiteParameter.ResetDbType"> <summary> Not implemented </summary> </member> <member name="M:System.Data.SQLite.SQLiteParameter.Clone"> <summary> Clones a parameter </summary> <returns>A new, unassociated SQLiteParameter</returns> </member> <member name="P:System.Data.SQLite.SQLiteParameter.IsNullable"> <summary> Returns True. </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameter.DbType"> <summary> Returns the datatype of the parameter </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameter.Direction"> <summary> Supports only input parameters </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameter.ParameterName"> <summary> Returns the parameter name </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameter.Size"> <summary> Returns the size of the parameter </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameter.SourceColumn"> <summary> Gets/sets the source column </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameter.SourceColumnNullMapping"> <summary> Returns false, ignores any set value </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameter.SourceVersion"> <summary> Gets and sets the row version </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameter.Value"> <summary> Gets and sets the parameter value. If no datatype was specified, the datatype will assume the type from the value given. </summary> </member> <member name="T:System.Data.SQLite.SQLiteMetaDataCollectionNames"> <summary> MetaDataCollections specific to SQLite </summary> </member> <member name="F:System.Data.SQLite.SQLiteMetaDataCollectionNames.Catalogs"> <summary> Returns a list of databases attached to the connection </summary> </member> <member name="F:System.Data.SQLite.SQLiteMetaDataCollectionNames.Columns"> <summary> Returns column information for the specified table </summary> </member> <member name="F:System.Data.SQLite.SQLiteMetaDataCollectionNames.Indexes"> <summary> Returns index information for the optionally-specified table </summary> </member> <member name="F:System.Data.SQLite.SQLiteMetaDataCollectionNames.IndexColumns"> <summary> Returns base columns for the given index </summary> </member> <member name="F:System.Data.SQLite.SQLiteMetaDataCollectionNames.Tables"> <summary> Returns the tables in the given catalog </summary> </member> <member name="F:System.Data.SQLite.SQLiteMetaDataCollectionNames.Views"> <summary> Returns user-defined views in the given catalog </summary> </member> <member name="F:System.Data.SQLite.SQLiteMetaDataCollectionNames.ViewColumns"> <summary> Returns underlying column information on the given view </summary> </member> <member name="F:System.Data.SQLite.SQLiteMetaDataCollectionNames.ForeignKeys"> <summary> Returns foreign key information for the given catalog </summary> </member> <member name="T:System.Data.SQLite.SQLiteCommand"> <summary> SQLite implementation of DbCommand. </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._commandText"> <summary> The command text this command is based on </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._cnn"> <summary> The connection the command is associated with </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._isReaderOpen"> <summary> Indicates whether or not a DataReader is active on the command. </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._commandTimeout"> <summary> The timeout for the command, kludged because SQLite doesn't support per-command timeout values </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._designTimeVisible"> <summary> Designer support </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._updateRowSource"> <summary> Used by DbDataAdapter to determine updating behavior </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._parameterCollection"> <summary> The collection of parameters for the command </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._statementList"> <summary> The SQL command text, broken into individual SQL statements as they are executed </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._remainingText"> <summary> Unprocessed SQL text that has not been executed </summary> </member> <member name="F:System.Data.SQLite.SQLiteCommand._transaction"> <summary> Transaction associated with this command </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommand.#ctor"> <overloads> Constructs a new SQLiteCommand </overloads> <summary> Default constructor </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommand.#ctor(System.String)"> <summary> Initializes the command with the given command text </summary> <param name="commandText">The SQL command text</param> </member> <member name="M:System.Data.SQLite.SQLiteCommand.#ctor(System.String,System.Data.SQLite.SQLiteConnection)"> <summary> Initializes the command with the given SQL command text and attach the command to the specified connection. </summary> <param name="commandText">The SQL command text</param> <param name="cnn">The connection to associate with the command</param> </member> <member name="M:System.Data.SQLite.SQLiteCommand.#ctor(System.Data.SQLite.SQLiteConnection)"> <summary> Initializes the command and associates it with the specified connection. </summary> <param name="cnn">The connection to associate with the command</param> </member> <member name="M:System.Data.SQLite.SQLiteCommand.#ctor(System.String,System.Data.SQLite.SQLiteConnection,System.Data.SQLite.SQLiteTransaction)"> <summary> Initializes a command with the given SQL, connection and transaction </summary> <param name="commandText">The SQL command text</param> <param name="cnn">The connection to associate with the command</param> <param name="trans">The transaction the command should be associated with</param> </member> <member name="M:System.Data.SQLite.SQLiteCommand.Initialize(System.String,System.Data.SQLite.SQLiteConnection)"> <summary> Initializes the command class </summary> <param name="strSql">The SQL command text</param> <param name="cnn">A connection to associate with the command</param> </member> <member name="M:System.Data.SQLite.SQLiteCommand.Dispose(System.Boolean)"> <summary> Disposes of the command and clears all member variables </summary> <param name="disposing">Whether or not the class is being explicitly or implicitly disposed</param> </member> <member name="M:System.Data.SQLite.SQLiteCommand.ClearCommands"> <summary> Clears and destroys all statements currently prepared </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommand.BuildNextCommand"> <summary> Builds an array of prepared statements for each complete SQL statement in the command text </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommand.Cancel"> <summary> Not implemented </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommand.CreateDbParameter"> <summary> Forwards to the local CreateParameter() function </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteCommand.CreateParameter"> <summary> Create a new parameter </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteCommand.InitializeForReader"> <summary> This function ensures there are no active readers, that we have a valid connection, that the connection is open, that all statements are prepared and all parameters are assigned in preparation for allocating a data reader. </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommand.ExecuteDbDataReader(System.Data.CommandBehavior)"> <summary> Creates a new SQLiteDataReader to execute/iterate the array of SQLite prepared statements </summary> <param name="behavior">The behavior the data reader should adopt</param> <returns>Returns a SQLiteDataReader object</returns> </member> <member name="M:System.Data.SQLite.SQLiteCommand.ExecuteReader(System.Data.CommandBehavior)"> <summary> Overrides the default behavior to return a SQLiteDataReader specialization class </summary> <param name="behavior">The flags to be associated with the reader</param> <returns>A SQLiteDataReader</returns> </member> <member name="M:System.Data.SQLite.SQLiteCommand.ExecuteReader"> <summary> Overrides the default behavior of DbDataReader to return a specialized SQLiteDataReader class </summary> <returns>A SQLiteDataReader</returns> </member> <member name="M:System.Data.SQLite.SQLiteCommand.ClearDataReader"> <summary> Called by the SQLiteDataReader when the data reader is closed. </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommand.ExecuteNonQuery"> <summary> Execute the command and return the number of rows inserted/updated affected by it. </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteCommand.ExecuteScalar"> <summary> Execute the command and return the first column of the first row of the resultset (if present), or null if no resultset was returned. </summary> <returns>The first column of the first row of the first resultset from the query</returns> </member> <member name="M:System.Data.SQLite.SQLiteCommand.Prepare"> <summary> Does nothing. Commands are prepared as they are executed the first time, and kept in prepared state afterwards. </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommand.Clone"> <summary> Clones a command, including all its parameters </summary> <returns>A new SQLiteCommand with the same commandtext, connection and parameters</returns> </member> <member name="P:System.Data.SQLite.SQLiteCommand.CommandText"> <summary> The SQL command text associated with the command </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.CommandTimeout"> <summary> The amount of time to wait for the connection to become available before erroring out </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.CommandType"> <summary> The type of the command. SQLite only supports CommandType.Text </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.Connection"> <summary> The connection associated with this command </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.DbConnection"> <summary> Forwards to the local Connection property </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.Parameters"> <summary> Returns the SQLiteParameterCollection for the given command </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.DbParameterCollection"> <summary> Forwards to the local Parameters property </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.Transaction"> <summary> The transaction associated with this command. SQLite only supports one transaction per connection, so this property forwards to the command's underlying connection. </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.DbTransaction"> <summary> Forwards to the local Transaction property </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.UpdatedRowSource"> <summary> Sets the method the SQLiteCommandBuilder uses to determine how to update inserted or updated rows in a DataTable. </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommand.DesignTimeVisible"> <summary> Determines if the command is visible at design time. Defaults to True. </summary> </member> <member name="T:System.Data.SQLite.SQLiteBase"> <summary> This internal class provides the foundation of SQLite support. It defines all the abstract members needed to implement a SQLite data provider, and inherits from SQLiteConvert which allows for simple translations of string to and from SQLite. </summary> </member> <member name="M:System.Data.SQLite.SQLiteBase.Open(System.String)"> <summary> Opens a database. </summary> <remarks> Implementers should call SQLiteFunction.BindFunctions() and save the array after opening a connection to bind all attributed user-defined functions and collating sequences to the new connection. </remarks> <param name="strFilename">The filename of the database to open. SQLite automatically creates it if it doesn't exist.</param> </member> <member name="M:System.Data.SQLite.SQLiteBase.Close"> <summary> Closes the currently-open database. </summary> <remarks> After the database has been closed implemeters should call SQLiteFunction.UnbindFunctions() to deallocate all interop allocated memory associated with the user-defined functions and collating sequences tied to the closed connection. </remarks> </member> <member name="M:System.Data.SQLite.SQLiteBase.SetTimeout(System.Int32)"> <summary> Sets the busy timeout on the connection. SQLiteCommand will call this before executing any command. </summary> <param name="nTimeoutMS">The number of milliseconds to wait before returning SQLITE_BUSY</param> </member> <member name="M:System.Data.SQLite.SQLiteBase.Execute(System.String)"> <summary> Quick execute of a SQL command. This is only executed internally, usually by SQLiteConnection when the connection is first opened to set the necessary startup pragmas. </summary> <param name="strSql">The SQL command text to execute</param> </member> <member name="M:System.Data.SQLite.SQLiteBase.SQLiteLastError"> <summary> Returns the text of the last error issued by SQLite </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteBase.Prepare(System.String,System.Data.SQLite.SQLiteStatement,System.String@)"> <summary> Prepares a SQL statement for execution. </summary> <param name="strSql">The SQL command text to prepare</param> <param name="previous">The previous statement in a multi-statement command, or null if no previous statement exists</param> <param name="strRemain">The remainder of the statement that was not processed. Each call to prepare parses the SQL up to to either the end of the text or to the first semi-colon delimiter. The remaining text is returned here for a subsequent call to Prepare() until all the text has been processed.</param> <returns>Returns an initialized SQLiteStatement.</returns> </member> <member name="M:System.Data.SQLite.SQLiteBase.Step(System.Data.SQLite.SQLiteStatement)"> <summary> Steps through a prepared statement. </summary> <param name="stmt">The SQLiteStatement to step through</param> <returns>True if a row was returned, False if not.</returns> </member> <member name="M:System.Data.SQLite.SQLiteBase.FinalizeStatement(System.Data.SQLite.SQLiteStatement)"> <summary> Finalizes a prepared statement. </summary> <param name="stmt">The statement to finalize</param> </member> <member name="M:System.Data.SQLite.SQLiteBase.Reset(System.Data.SQLite.SQLiteStatement)"> <summary> Resets a prepared statement so it can be executed again. If the error returned is SQLITE_SCHEMA, transparently attempt to rebuild the SQL statement and throw an error if that was not possible. </summary> <param name="stmt">The statement to reset</param> <returns>Returns -1 if the schema changed while resetting, 0 if the reset was sucessful or 6 (SQLITE_LOCKED) if the reset failed due to a lock</returns> </member> <member name="M:System.Data.SQLite.SQLiteBase.SetRealColNames(System.Boolean)"> <summary> An interop-specific function, this call sets an internal flag in the sqlite.interop.dll which causes all column names of subsequently-prepared statements to return in Database.Table.Column format, ignoring all aliases that may have been applied to tables or columns in a resultset. </summary> <remarks> All statements prepared on this connection after this flag is changed are affected. Existing statements are not. </remarks> <param name="bOn">Set to True to enable real column names, false to disable them.</param> </member> <member name="M:System.Data.SQLite.SQLiteBase.GetValue(System.Data.SQLite.SQLiteStatement,System.Int32,System.Data.SQLite.SQLiteType@)"> <summary> Helper function to retrieve a column of data from an active statement. </summary> <param name="stmt">The statement being step()'d through</param> <param name="index">The column index to retrieve</param> <param name="typ">The type of data contained in the column. If Uninitialized, this function will retrieve the datatype information.</param> <returns>Returns the data in the column</returns> </member> <member name="P:System.Data.SQLite.SQLiteBase.Version"> <summary> Returns a string representing the active version of SQLite </summary> </member> <member name="P:System.Data.SQLite.SQLiteBase.Changes"> <summary> Returns the number of changes the last executing insert/update caused. </summary> </member> <member name="T:System.Data.SQLite.SQLiteConnectionStringBuilder"> <summary> SQLite implementation of DbConnectionStringBuilder. </summary> </member> <member name="F:System.Data.SQLite.SQLiteConnectionStringBuilder._properties"> <summary> Properties of this class </summary> </member> <member name="M:System.Data.SQLite.SQLiteConnectionStringBuilder.#ctor"> <overloads> Constructs a new instance of the class </overloads> <summary> Default constructor </summary> </member> <member name="M:System.Data.SQLite.SQLiteConnectionStringBuilder.#ctor(System.String)"> <summary> Constructs a new instance of the class using the specified connection string. </summary> <param name="connectionString">The connection string to parse</param> </member> <member name="M:System.Data.SQLite.SQLiteConnectionStringBuilder.Initialize(System.String)"> <summary> Private initializer, which assigns the connection string and resets the builder </summary> <param name="cnnString">The connection string to assign</param> </member> <member name="M:System.Data.SQLite.SQLiteConnectionStringBuilder.TryGetValue(System.String,System.Object@)"> <summary> Helper function for retrieving values from the connectionstring </summary> <param name="keyword">The keyword to retrieve settings for</param> <param name="value">The resulting parameter value</param> <returns>Returns true if the value was found and returned</returns> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.Version"> <summary> Gets/Sets the default version of the SQLite engine to instantiate. Currently the only valid value is 3, indicating version 3 of the sqlite library. </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.SyncMode"> <summary> Gets/Sets the synchronous mode of the connection string. Default is "Normal". </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.UseUTF16Encoding"> <summary> Gets/Sets the encoding for the connection string. The default is "False" which indicates UTF-8 encoding. </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.DataSource"> <summary> Gets/Sets the filename to open on the connection string. </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.Enlist"> <summary> Determines whether or not the connection will automatically participate in the current distributed transaction (if one exists) </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.Password"> <summary> Gets/sets the database encryption password </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.PageSize"> <summary> Gets/Sets the page size for the connection. </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.CacheSize"> <summary> Gets/Sets the cache size for the connection. </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnectionStringBuilder.DateTimeFormat"> <summary> Gets/Sets the datetime format for the connection. </summary> </member> <member name="T:System.Data.SQLite.SQLite3"> <summary> This class implements SQLiteBase completely, and is the guts of the code that interop's SQLite with .NET </summary> </member> <member name="F:System.Data.SQLite.SQLite3._sql"> <summary> The opaque pointer returned to us by the sqlite provider </summary> </member> <member name="F:System.Data.SQLite.SQLite3._functionsArray"> <summary> The user-defined functions registered on this connection </summary> </member> <member name="T:System.Data.SQLite.SQLiteParameterCollection"> <summary> SQLite implementation of DbParameterCollection. </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameterCollection._command"> <summary> The underlying command to which this collection belongs </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameterCollection._parameterList"> <summary> The internal array of parameters in this collection </summary> </member> <member name="F:System.Data.SQLite.SQLiteParameterCollection._unboundFlag"> <summary> Determines whether or not all parameters have been bound to their statement(s) </summary> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.#ctor(System.Data.SQLite.SQLiteCommand)"> <summary> Initializes the collection </summary> <param name="cmd">The command to which the collection belongs</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.GetEnumerator"> <summary> Retrieves an enumerator for the collection </summary> <returns>An enumerator for the underlying array</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Add(System.String,System.Data.DbType,System.Int32,System.String)"> <summary> Adds a parameter to the collection </summary> <param name="parameterName">The parameter name</param> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the value</param> <param name="sourceColumn">The source column</param> <returns>A SQLiteParameter object</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Add(System.String,System.Data.DbType,System.Int32)"> <summary> Adds a parameter to the collection </summary> <param name="parameterName">The parameter name</param> <param name="parameterType">The data type</param> <param name="parameterSize">The size of the value</param> <returns>A SQLiteParameter object</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Add(System.String,System.Data.DbType)"> <summary> Adds a parameter to the collection </summary> <param name="parameterName">The parameter name</param> <param name="parameterType">The data type</param> <returns>A SQLiteParameter object</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Add(System.Data.Common.DbParameter)"> <summary> Adds a parameter to the collection </summary> <param name="parameter">The parameter to add</param> <returns>A zero-based index of where the parameter is located in the array</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Add(System.Object)"> <summary> Adds a parameter to the collection </summary> <param name="value">The parameter to add</param> <returns>A zero-based index of where the parameter is located in the array</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.AddWithValue(System.String,System.Object)"> <summary> Adds a named/unnamed parameter and its value to the parameter collection. </summary> <param name="parameterName">Name of the parameter, or null to indicate an unnamed parameter</param> <param name="value">The initial value of the parameter</param> <returns>Returns the SQLiteParameter object created during the call.</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.AddRange(System.Data.Common.DbParameter[])"> <summary> Adds an array of parameters to the collection </summary> <param name="values">The array of parameters to add</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.AddRange(System.Array)"> <summary> Adds an array of parameters to the collection </summary> <param name="values">The array of parameters to add</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Clear"> <summary> Clears the array and resets the collection </summary> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Contains(System.String)"> <summary> Determines if the named parameter exists in the collection </summary> <param name="parameterName">The name of the parameter to check</param> <returns>True if the parameter is in the collection</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Contains(System.Object)"> <summary> Determines if the parameter exists in the collection </summary> <param name="value">The SQLiteParameter to check</param> <returns>True if the parameter is in the collection</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.CopyTo(System.Array,System.Int32)"> <summary> Not implemented </summary> <param name="array"></param> <param name="index"></param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.GetParameter(System.String)"> <summary> Retrieve a parameter by name from the collection </summary> <param name="parameterName">The name of the parameter to fetch</param> <returns>A DbParameter object</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.GetParameter(System.Int32)"> <summary> Retrieves a parameter by its index in the collection </summary> <param name="index">The index of the parameter to retrieve</param> <returns>A DbParameter object</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.IndexOf(System.String)"> <summary> Returns the index of a parameter given its name </summary> <param name="parameterName">The name of the parameter to find</param> <returns>-1 if not found, otherwise a zero-based index of the parameter</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.IndexOf(System.Object)"> <summary> Returns the index of a parameter </summary> <param name="value">The parameter to find</param> <returns>-1 if not found, otherwise a zero-based index of the parameter</returns> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Insert(System.Int32,System.Object)"> <summary> Inserts a parameter into the array at the specified location </summary> <param name="index">The zero-based index to insert the parameter at</param> <param name="value">The parameter to insert</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Remove(System.Object)"> <summary> Removes a parameter from the collection </summary> <param name="value">The parameter to remove</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.RemoveAt(System.String)"> <summary> Removes a parameter from the collection given its name </summary> <param name="parameterName">The name of the parameter to remove</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.RemoveAt(System.Int32)"> <summary> Removes a parameter from the collection given its index </summary> <param name="index">The zero-based parameter index to remove</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.SetParameter(System.String,System.Data.Common.DbParameter)"> <summary> Re-assign the named parameter to a new parameter object </summary> <param name="parameterName">The name of the parameter to replace</param> <param name="value">The new parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.SetParameter(System.Int32,System.Data.Common.DbParameter)"> <summary> Re-assign a parameter at the specified index </summary> <param name="index">The zero-based index of the parameter to replace</param> <param name="value">The new parameter</param> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.Unbind"> <summary> Un-binds all parameters from their statements </summary> </member> <member name="M:System.Data.SQLite.SQLiteParameterCollection.MapParameters(System.Data.SQLite.SQLiteStatement)"> <summary> This function attempts to map all parameters in the collection to all statements in a Command. Since named parameters may span multiple statements, this function makes sure all statements are bound to the same named parameter. Unnamed parameters are bound in sequence. </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameterCollection.IsSynchronized"> <summary> Returns true </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameterCollection.IsFixedSize"> <summary> Returns false </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameterCollection.IsReadOnly"> <summary> Returns false </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameterCollection.SyncRoot"> <summary> Returns null </summary> </member> <member name="P:System.Data.SQLite.SQLiteParameterCollection.Count"> <summary> Returns a count of parameters in the collection </summary> </member> <member name="T:System.Data.SQLite.SQLite3_UTF16"> <summary> Alternate SQLite3 object, overriding many text behaviors to support UTF-16 (Unicode) </summary> </member> <member name="M:System.Data.SQLite.SQLite3_UTF16.ToString(System.IntPtr,System.Int32)"> <summary> Overrides SQLiteConvert.ToString() to marshal UTF-16 strings instead of UTF-8 </summary> <param name="b">A pointer to a UTF-16 string</param> <param name="nbytelen">The length (IN BYTES) of the string</param> <returns>A .NET string</returns> </member> <member name="T:System.Data.SQLite.SR"> <summary> A strongly-typed resource class, for looking up localized strings, etc. </summary> </member> <member name="P:System.Data.SQLite.SR.ResourceManager"> <summary> Returns the cached ResourceManager instance used by this class. </summary> </member> <member name="P:System.Data.SQLite.SR.Culture"> <summary> Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. </summary> </member> <member name="P:System.Data.SQLite.SR.DataTypes"> <summary> Looks up a localized string similar to <?xml version="1.0" standalone="yes"?> <DocumentElement> <DataTypes> <TypeName>System.Int16</TypeName> <ProviderDbType>10</ProviderDbType> <ColumnSize>5</ColumnSize> <DataType>System.Int16</DataType> <IsAutoIncrementable>false</IsAutoIncrementable> <IsCaseSensitive>false</IsCaseSensitive> <IsFixedLength>true</IsFixedLength> <IsFixedPrecisionScale>true</IsFixedPrecisionScale> <IsLong>false</IsLong> <IsNullable>true</IsNullable> <IsSearchable>true</Is [rest of string was truncated]";. </summary> </member> <member name="P:System.Data.SQLite.SR.MetaDataCollections"> <summary> Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?> <DocumentElement> <MetaDataCollections> <CollectionName>MetaDataCollections</CollectionName> <NumberOfRestrictions>0</NumberOfRestrictions> <NumberOfIdentifierParts>0</NumberOfIdentifierParts> </MetaDataCollections> <MetaDataCollections> <CollectionName>DataSourceInformation</CollectionName> <NumberOfRestrictions>0</NumberOfRestrictions> <NumberOfIdentifierParts>0</NumberOfIdentifierParts> </MetaDataCollections> <MetaDataC [rest of string was truncated]";. </summary> </member> <member name="T:System.Data.SQLite.SQLiteErrorCode"> <summary> SQLite error codes </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Ok"> <summary> Success </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Error"> <summary> SQL error or missing database </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Internal"> <summary> Internal logic error in SQLite </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Perm"> <summary> Access permission denied </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Abort"> <summary> Callback routine requested an abort </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Busy"> <summary> The database file is locked </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Locked"> <summary> A table in the database is locked </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.NoMem"> <summary> malloc() failed </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.ReadOnly"> <summary> Attempt to write a read-only database </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Interrupt"> <summary> Operation terminated by sqlite3_interrupt() </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.IOErr"> <summary> Some kind of disk I/O error occurred </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Corrupt"> <summary> The database disk image is malformed </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.NotFound"> <summary> Table or record not found </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Full"> <summary> Insertion failed because database is full </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.CantOpen"> <summary> Unable to open the database file </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Protocol"> <summary> Database lock protocol error </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Empty"> <summary> Database is empty </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Schema"> <summary> The database schema changed </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.TooBig"> <summary> Too much data for one row of a table </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Constraint"> <summary> Abort due to constraint violation </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Mismatch"> <summary> Data type mismatch </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Misuse"> <summary> Library used incorrectly </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.NOLFS"> <summary> Uses OS features not supported on host </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Auth"> <summary> Authorization denied </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Format"> <summary> Auxiliary database format error </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Range"> <summary> 2nd parameter to sqlite3_bind out of range </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.NotADatabase"> <summary> File opened that is not a database file </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Row"> <summary> sqlite3_step() has another row ready </summary> </member> <member name="F:System.Data.SQLite.SQLiteErrorCode.Done"> <summary> sqlite3_step() has finished executing </summary> </member> <member name="T:System.Data.SQLite.SQLiteException"> <summary> SQLite exception class. </summary> </member> <member name="M:System.Data.SQLite.SQLiteException.#ctor(System.Int32,System.String)"> <summary> Public constructor for generating a SQLite error given the base error code </summary> <param name="errorCode">The SQLite error code to report</param> <param name="extendedInformation">Extra text to go along with the error message text</param> </member> <member name="M:System.Data.SQLite.SQLiteException.#ctor(System.String)"> <summary> Various public constructors that just pass along to the base Exception </summary> <param name="message">Passed verbatim to Exception</param> </member> <member name="M:System.Data.SQLite.SQLiteException.#ctor"> <summary> Various public constructors that just pass along to the base Exception </summary> </member> <member name="M:System.Data.SQLite.SQLiteException.#ctor(System.String,System.Exception)"> <summary> Various public constructors that just pass along to the base Exception <param name="message">Passed to Exception</param> <param name="innerException">Passed to Exception</param> </summary> </member> <member name="M:System.Data.SQLite.SQLiteException.GetStockErrorMessage(System.Int32,System.String)"> <summary> Initializes the exception class with the SQLite error code. </summary> <param name="errorCode">The SQLite error code</param> <param name="errorMessage">A detailed error message</param> <returns>An error message string</returns> </member> <member name="P:System.Data.SQLite.SQLiteException.ErrorCode"> <summary> Retrieves the underlying SQLite error code for this exception </summary> </member> <member name="T:System.Data.SQLite.SynchronizationModes"> <summary> The I/O file cache flushing behavior for the connection </summary> </member> <member name="F:System.Data.SQLite.SynchronizationModes.Normal"> <summary> Normal file flushing at critical sections of the code </summary> </member> <member name="F:System.Data.SQLite.SynchronizationModes.Full"> <summary> Full file flushing after every write operation </summary> </member> <member name="F:System.Data.SQLite.SynchronizationModes.Off"> <summary> Use the default operating system's file flushing, SQLite does not explicitly flush the file buffers after writing </summary> </member> <member name="T:System.Data.SQLite.SQLiteConnection"> <summary> SQLite implentation of DbConnection. </summary> <remarks> The <see cref="P:System.Data.SQLite.SQLiteConnection.ConnectionString">ConnectionString</see> property of the SQLiteConnection class can contain the following parameter(s), delimited with a semi-colon: <list type="table"> <listheader> <term>Parameter</term> <term>Values</term> <term>Required</term> <term>Default</term> </listheader> <item> <description>Data Source</description> <description>{filename}</description> <description>Y</description> <description></description> </item> <item> <description>Version</description> <description>3</description> <description>N</description> <description>3</description> </item> <item> <description>UseUTF16Encoding</description> <description><b>True</b><br/><b>False</b></description> <description>N</description> <description>False</description> </item> <item> <description>DateTimeFormat</description> <description><b>Ticks</b> - Use DateTime.Ticks<br/><b>ISO8601</b> - Use ISO8601 DateTime format</description> <description>N</description> <description>ISO8601</description> </item> <item> <description>Cache Size</description> <description>{size in bytes}</description> <description>N</description> <description>2000</description> </item> <item> <description>Synchronous</description> <description><b>Normal</b> - Normal file flushing behavior<br/><b>Full</b> - Full flushing after all writes<br/><b>Off</b> - Underlying OS flushes I/O's</description> <description>N</description> <description>Normal</description> </item> <item> <description>Page Size</description> <description>{size in bytes}</description> <description>N</description> <description>1024</description> </item> <item> <description>Password</description> <description>{password}</description> <description>N</description> <description></description> </item> <item> <description>Enlist</description> <description><B>Y</B> - Automatically enlist in distributed transactions<br/><b>N</b> - No automatic enlistment</description> <description>N</description> <description>Y</description> </item> </list> </remarks> </member> <member name="F:System.Data.SQLite.SQLiteConnection._connectionState"> <summary> State of the current connection </summary> </member> <member name="F:System.Data.SQLite.SQLiteConnection._connectionString"> <summary> The connection string </summary> </member> <member name="F:System.Data.SQLite.SQLiteConnection._transactionLevel"> <summary> Nesting level of the transactions open on the connection </summary> </member> <member name="F:System.Data.SQLite.SQLiteConnection._enlisted"> <summary> Whether or not the connection is enlisted in a distrubuted transaction </summary> </member> <member name="F:System.Data.SQLite.SQLiteConnection._sql"> <summary> The base SQLite object to interop with </summary> </member> <member name="F:System.Data.SQLite.SQLiteConnection._commandList"> <summary> Commands associated with this connection </summary> </member> <member name="F:System.Data.SQLite.SQLiteConnection._dataSource"> <summary> The database filename minus path and extension </summary> </member> <member name="F:System.Data.SQLite.SQLiteConnection._password"> <summary> Temporary password storage, emptied after the database has been opened </summary> </member> <member name="M:System.Data.SQLite.SQLiteConnection.#ctor"> <overloads> Constructs a new SQLiteConnection object </overloads> <summary> Default constructor </summary> </member> <member name="M:System.Data.SQLite.SQLiteConnection.#ctor(System.String)"> <summary> Initializes the connection with the specified connection string </summary> <param name="connectionString">The connection string to use on the connection</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.#ctor(System.Data.SQLite.SQLiteConnection)"> <summary> Clones the settings and connection string from an existing connection. If the existing connection is already open, this function will open its own connection, enumerate any attached databases of the original connection, and automatically attach to them. </summary> <param name="cnn"></param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Clone"> <summary> Creates a clone of the connection. All attached databases and user-defined functions are cloned. If the existing connection is open, the cloned connection will also be opened. </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Dispose(System.Boolean)"> <summary> Disposes of the SQLiteConnection, closing it if it is active. </summary> <param name="disposing">True if the connection is being explicitly closed.</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.CreateFile(System.String)"> <summary> Creates a database file. This just creates a zero-byte file which SQLite will turn into a database when the file is opened properly. </summary> <param name="databaseFileName">The file to create</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.CompressFile(System.String)"> <summary> On NTFS volumes, this function turns on the compression attribute for the given file. It must not be open or referenced at the time of the function call. </summary> <param name="databaseFileName">The file to compress</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.DecompressFile(System.String)"> <summary> On NTFS volumes, this function removes the compression attribute for the given file. It must not be open or referenced at the time of the function call. </summary> <param name="databaseFileName">The file to decompress</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.EncryptFile(System.String)"> <summary> On NTFS volumes, this function turns on the EFS (Encrypted File System) attribute for the given file, which causes the file to be encrypted. For a full description of EFS, see the MSDN documentation. </summary> <remarks> Requires Win2K and above, plus a valid EFS certificate (which is beyond the scope of this function description). </remarks> <param name="databaseFileName">The file to encrypt</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.DecryptFile(System.String)"> <summary> On NTFS volumes, this function removes the encryption attribute from the file, causing the file to be decrypted. See the MSDN documentation for full details on EFS (Encrypted File System). </summary> <remarks> Requires Win2K and above, plus a valid EFS certificate (which is beyond the scope of this function description). </remarks> <param name="databaseFileName">The file to decrypt</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.IsEncrypted(System.String)"> <summary> Returns true if the file is encrypted, or false otherwise. </summary> <remarks> Requires Win2K and above, plus a valid EFS certificate (which is beyond the scope of this function description). </remarks> <param name="databaseFileName">The file to check</param> <returns>true if the file is encrypted</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.OnStateChange(System.Data.ConnectionState)"> <summary> Raises the state change event when the state of the connection changes </summary> <param name="newState">The new state. If it is different from the previous state, an event is raised.</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.BeginTransaction(System.Data.IsolationLevel,System.Boolean)"> <summary> Creates a new SQLiteTransaction if one isn't already active on the connection. </summary> <param name="isolationLevel">SQLite doesn't support varying isolation levels, so this parameter is ignored.</param> <param name="deferredLock">When TRUE, SQLite defers obtaining a write lock until a write operation is requested. When FALSE, a writelock is obtained immediately. The default is TRUE, but in a multi-threaded multi-writer environment, one may instead choose to lock the database immediately to avoid any possible writer deadlock.</param> <returns>Returns a SQLiteTransaction object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.BeginTransaction(System.Boolean)"> <summary> Creates a new SQLiteTransaction if one isn't already active on the connection. </summary> <param name="deferredLock">When TRUE, SQLite defers obtaining a write lock until a write operation is requested. When FALSE, a writelock is obtained immediately. The default is TRUE, but in a multi-threaded multi-writer environment, one may instead choose to lock the database immediately to avoid any possible writer deadlock.</param> <returns>Returns a SQLiteTransaction object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.BeginTransaction(System.Data.IsolationLevel)"> <summary> Creates a new SQLiteTransaction if one isn't already active on the connection. </summary> <param name="isolationLevel">SQLite doesn't support varying isolation levels, so this parameter is ignored.</param> <returns>Returns a SQLiteTransaction object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.BeginTransaction"> <summary> Creates a new SQLiteTransaction if one isn't already active on the connection. </summary> <returns>Returns a SQLiteTransaction object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.BeginDbTransaction(System.Data.IsolationLevel)"> <summary> Forwards to the local BeginTransaction() function </summary> <param name="isolationLevel"></param> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.ChangeDatabase(System.String)"> <summary> Not implemented </summary> <param name="databaseName"></param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Close"> <summary> When the database connection is closed, all commands linked to this connection are automatically reset. </summary> </member> <member name="M:System.Data.SQLite.SQLiteConnection.CreateCommand"> <summary> Create a new SQLiteCommand and associate it with this connection. </summary> <returns>Returns an instantiated SQLiteCommand object already assigned to this connection.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.CreateDbCommand"> <summary> Forwards to the local CreateCommand() function </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.ParseConnectionString"> <summary> Parses the connection string into component parts </summary> <returns>An array of key-value pairs representing each parameter of the connection string</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.EnlistTransaction(System.Transactions.Transaction)"> <summary> Manual distributed transaction enlistment support </summary> <param name="transaction">The distributed transaction to enlist in</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.FindKey(System.Collections.Generic.KeyValuePair{System.String,System.String}[],System.String,System.String)"> <summary> Looks for a key in the array of key/values of the parameter string. If not found, return the specified default value </summary> <param name="opts">The Key/Value pair array to look in</param> <param name="key">The key to find</param> <param name="defValue">The default value to return if the key is not found</param> <returns>The value corresponding to the specified key, or the default value if not found.</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Open"> <summary> Opens the connection using the parameters found in the <see cref="P:System.Data.SQLite.SQLiteConnection.ConnectionString">ConnectionString</see> </summary> </member> <member name="M:System.Data.SQLite.SQLiteConnection.ChangePassword(System.String)"> <summary> Change the password (or assign a password) to an open database. </summary> <remarks> No readers or writers may be active for this process. The database must already be open and if it already was password protected, the existing password must already have been supplied. </remarks> <param name="newPassword">The new password to assign to the database</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.ChangePassword(System.Byte[])"> <summary> Change the password (or assign a password) to an open database. </summary> <remarks> No readers or writers may be active for this process. The database must already be open and if it already was password protected, the existing password must already have been supplied. </remarks> <param name="newPassword">The new password to assign to the database</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.SetPassword(System.String)"> <summary> Sets the password for a password-protected database. A password-protected database is unusable for any operation until the password has been set. </summary> <param name="databasePassword">The password for the database</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.SetPassword(System.Byte[])"> <summary> Sets the password for a password-protected database. A password-protected database is unusable for any operation until the password has been set. </summary> <param name="databasePassword">The password for the database</param> </member> <member name="M:System.Data.SQLite.SQLiteConnection.GetSchema"> <overloads> The following commands are used to extract schema information out of the database. Valid schema types are: <list type="bullet"> <item> <description>MetaDataCollections</description> </item> <item> <description>DataSourceInformation</description> </item> <item> <description>Catalogs</description> </item> <item> <description>Columns</description> </item> <item> <description>ForeignKeys</description> </item> <item> <description>Indexes</description> </item> <item> <description>IndexColumns</description> </item> <item> <description>Tables</description> </item> <item> <description>Views</description> </item> <item> <description>ViewColumns</description> </item> </list> </overloads> <summary> Returns the MetaDataCollections schema </summary> <returns>A DataTable of the MetaDataCollections schema</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.GetSchema(System.String)"> <summary> Returns schema information of the specified collection </summary> <param name="collectionName">The schema collection to retrieve</param> <returns>A DataTable of the specified collection</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.GetSchema(System.String,System.String[])"> <summary> Retrieves schema information using the specified constraint(s) for the specified collection </summary> <param name="collectionName">The collection to retrieve</param> <param name="restrictionValues">The restrictions to impose</param> <returns>A DataTable of the specified collection</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_MetaDataCollections"> <summary> Builds a MetaDataCollections schema datatable </summary> <returns>DataTable</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_DataSourceInformation"> <summary> Builds a DataSourceInformation datatable </summary> <returns>DataTable</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_Columns(System.String,System.String,System.String)"> <summary> Build a Columns schema </summary> <param name="strCatalog">The catalog (attached database) to query, can be null</param> <param name="strTable">The table to retrieve schema information for, must not be null</param> <param name="strColumn">The column to retrieve schema information for, can be null</param> <returns>DataTable</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_Indexes(System.String,System.String,System.String)"> <summary> Returns index information for the given database and catalog </summary> <param name="strCatalog">The catalog (attached database) to query, can be null</param> <param name="strIndex">The name of the index to retrieve information for, can be null</param> <param name="strTable">The table to retrieve index information for, can be null</param> <returns>DataTable</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_Tables(System.String,System.String,System.String)"> <summary> Retrieves table schema information for the database and catalog </summary> <param name="strCatalog">The catalog (attached database) to retrieve tables on</param> <param name="strTable">The table to retrieve, can be null</param> <param name="strType">The table type, can be null</param> <returns>DataTable</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_Views(System.String,System.String)"> <summary> Retrieves view schema information for the database </summary> <param name="strCatalog">The catalog (attached database) to retrieve views on</param> <param name="strView">The view name, can be null</param> <returns>DataTable</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_Catalogs(System.String)"> <summary> Retrieves catalog (attached databases) schema information for the database </summary> <param name="strCatalog">The catalog to retrieve, can be null</param> <returns>DataTable</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_IndexColumns(System.String,System.String,System.String,System.String)"> <summary> Returns the base column information for indexes in a database </summary> <param name="strCatalog">The catalog to retrieve indexes for (can be null)</param> <param name="strTable">The table to restrict index information by (can be null)</param> <param name="strIndex">The index to restrict index information by (can be null)</param> <param name="strColumn">The source column to restrict index information by (can be null)</param> <returns>A DataTable containing the results</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_ViewColumns(System.String,System.String,System.String)"> <summary> Returns detailed column information for a specified view </summary> <param name="strCatalog">The catalog to retrieve columns for (can be null)</param> <param name="strView">The view to restrict column information by (can be null)</param> <param name="strColumn">The source column to restrict column information by (can be null)</param> <returns>A DataTable containing the results</returns> </member> <member name="M:System.Data.SQLite.SQLiteConnection.Schema_ForeignKeys(System.String,System.String,System.String)"> <summary> Retrieves foreign key information from the specified set of filters </summary> <param name="strCatalog">An optional catalog to restrict results on</param> <param name="strTable">An optional table to restrict results on</param> <param name="strKeyName">An optional foreign key name to restrict results on</param> <returns>A DataTable with the results of the query</returns> </member> <member name="E:System.Data.SQLite.SQLiteConnection.StateChange"> <event/> <summary> This event is raised whenever the database is opened or closed. </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnection.ConnectionString"> <summary> The connection string containing the parameters for the connection </summary> <remarks> <list type="table"> <listheader> <term>Parameter</term> <term>Values</term> <term>Required</term> <term>Default</term> </listheader> <item> <description>Data Source</description> <description>{filename}</description> <description>Y</description> <description></description> </item> <item> <description>Version</description> <description>3</description> <description>N</description> <description>3</description> </item> <item> <description>UseUTF16Encoding</description> <description><b>True</b><br/><b>False</b></description> <description>N</description> <description>False</description> </item> <item> <description>DateTimeFormat</description> <description><b>Ticks</b> - Use DateTime.Ticks<br/><b>ISO8601</b> - Use ISO8601 DateTime format</description> <description>N</description> <description>ISO8601</description> </item> <item> <description>Cache Size</description> <description>{size in bytes}</description> <description>N</description> <description>2000</description> </item> <item> <description>Synchronous</description> <description><b>Normal</b> - Normal file flushing behavior<br/><b>Full</b> - Full flushing after all writes<br/><b>Off</b> - Underlying OS flushes I/O's</description> <description>N</description> <description>Normal</description> </item> <item> <description>Page Size</description> <description>{size in bytes}</description> <description>N</description> <description>1024</description> </item> <item> <description>Password</description> <description>{password}</description> <description>N</description> <description></description> </item> <item> <description>Enlist</description> <description><B>Y</B> - Automatically enlist in distributed transactions<br/><b>N</b> - No automatic enlistment</description> <description>N</description> <description>Y</description> </item> </list> </remarks> </member> <member name="P:System.Data.SQLite.SQLiteConnection.DataSource"> <summary> Returns the filename without extension or path </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnection.Database"> <summary> Returns an empty string </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnection.ServerVersion"> <summary> Returns the version of the underlying SQLite database engine </summary> </member> <member name="P:System.Data.SQLite.SQLiteConnection.State"> <summary> Returns the state of the connection. </summary> </member> <member name="T:System.Data.SQLite.SQLiteStatement"> <summary> Represents a single SQL statement in SQLite. </summary> </member> <member name="F:System.Data.SQLite.SQLiteStatement._sql"> <summary> The underlying SQLite object this statement is bound to </summary> </member> <member name="F:System.Data.SQLite.SQLiteStatement._sqlStatement"> <summary> The command text of this SQL statement </summary> </member> <member name="F:System.Data.SQLite.SQLiteStatement._sqlite_stmt"> <summary> The actual statement pointer </summary> </member> <member name="F:System.Data.SQLite.SQLiteStatement._unnamedParameters"> <summary> An index from which unnamed parameters begin </summary> </member> <member name="F:System.Data.SQLite.SQLiteStatement._paramNames"> <summary> Names of the parameters as SQLite understands them to be </summary> </member> <member name="F:System.Data.SQLite.SQLiteStatement._paramValues"> <summary> Parameters for this statement </summary> </member> <member name="F:System.Data.SQLite.SQLiteStatement._command"> <summary> Command this statement belongs to (if any) </summary> </member> <member name="M:System.Data.SQLite.SQLiteStatement.#ctor(System.Data.SQLite.SQLiteBase,System.Int32,System.String,System.Data.SQLite.SQLiteStatement)"> <summary> Initializes the statement and attempts to get all information about parameters in the statement </summary> <param name="sqlbase">The base SQLite object</param> <param name="stmt">The statement</param> <param name="strCommand">The command text for this statement</param> <param name="previous">The previous command in a multi-statement command</param> </member> <member name="M:System.Data.SQLite.SQLiteStatement.MapParameter(System.String,System.Data.SQLite.SQLiteParameter)"> <summary> Called by SQLiteParameterCollection, this function determines if the specified parameter name belongs to this statement, and if so, keeps a reference to the parameter so it can be bound later. </summary> <param name="s">The parameter name to map</param> <param name="p">The parameter to assign it</param> </member> <member name="M:System.Data.SQLite.SQLiteStatement.Dispose"> <summary> Disposes and finalizes the statement </summary> </member> <member name="M:System.Data.SQLite.SQLiteStatement.BindParameters"> <summary> Bind all parameters, making sure the caller didn't miss any </summary> </member> <member name="M:System.Data.SQLite.SQLiteStatement.BindParameter(System.Int32,System.Data.SQLite.SQLiteParameter)"> <summary> Perform the bind operation for an individual parameter </summary> <param name="index">The index of the parameter to bind</param> <param name="param">The parameter we're binding</param> </member> <member name="T:System.Data.SQLite.SQLiteFunctionAttribute"> <summary> A simple custom attribute to enable us to easily find user-defined functions in the loaded assemblies and initialize them in SQLite as connections are made. </summary> </member> <member name="M:System.Data.SQLite.SQLiteFunctionAttribute.#ctor"> <summary> Default constructor, initializes the internal variables for the function. </summary> </member> <member name="P:System.Data.SQLite.SQLiteFunctionAttribute.Name"> <summary> The function's name as it will be used in SQLite command text. </summary> </member> <member name="P:System.Data.SQLite.SQLiteFunctionAttribute.Arguments"> <summary> The number of arguments this function expects. -1 if the number of arguments is variable. </summary> </member> <member name="P:System.Data.SQLite.SQLiteFunctionAttribute.FuncType"> <summary> The type of function this implementation will be. </summary> </member> <member name="T:System.Data.SQLite.SQLiteFactory"> <summary> SQLite implementation of DbProviderFactory. </summary> </member> <member name="F:System.Data.SQLite.SQLiteFactory.Instance"> <summary> Static instance member which returns an instanced SQLiteFactory class. </summary> </member> <member name="M:System.Data.SQLite.SQLiteFactory.CreateCommand"> <summary> Returns a new SQLiteCommand object. </summary> <returns>A SQLiteCommand object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteFactory.CreateCommandBuilder"> <summary> Returns a new SQLiteCommandBuilder object. </summary> <returns>A SQLiteCommandBuilder object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteFactory.CreateConnection"> <summary> Creates a new SQLiteConnection. </summary> <returns>A SQLiteConnection object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteFactory.CreateConnectionStringBuilder"> <summary> Creates a new SQLiteConnectionStringBuilder. </summary> <returns>A SQLiteConnectionStringBuilder object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteFactory.CreateDataAdapter"> <summary> Creates a new SQLiteDataAdapter. </summary> <returns>A SQLiteDataAdapter object.</returns> </member> <member name="M:System.Data.SQLite.SQLiteFactory.CreateParameter"> <summary> Creates a new SQLiteParameter. </summary> <returns>A SQLiteParameter object.</returns> </member> <member name="T:System.Data.SQLite.SQLiteCommandBuilder"> <summary> SQLite implementation of DbCommandBuilder. </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.#ctor"> <summary> Default constructor </summary> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.#ctor(System.Data.SQLite.SQLiteDataAdapter)"> <summary> Initializes the command builder and associates it with the specified data adapter. </summary> <param name="adp"></param> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.ApplyParameterInfo(System.Data.Common.DbParameter,System.Data.DataRow,System.Data.StatementType,System.Boolean)"> <summary> Not implemented, this function does nothing. </summary> <param name="parameter">The parameter to use in applying custom behaviors to a row</param> <param name="row">The row to apply the parameter to</param> <param name="statementType">The type of statement</param> <param name="whereClause">Whether the application of the parameter is part of a WHERE clause</param> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetParameterName(System.String)"> <overloads> Not implemented. Throws a NotImplementedException() if called. </overloads> <summary> Not implemented. </summary> <param name="parameterName">The name of the parameter</param> <returns>Error</returns> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetParameterName(System.Int32)"> <summary> Not implemented. </summary> <param name="parameterOrdinal">The i of the parameter</param> <returns>Error</returns> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetParameterPlaceholder(System.Int32)"> <summary> Returns a placeholder character for the specified parameter i. </summary> <param name="parameterOrdinal">The index of the parameter to provide a placeholder for</param> <returns>Returns a "?" character, used for all placeholders.</returns> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.SetRowUpdatingHandler(System.Data.Common.DbDataAdapter)"> <summary> Sets the handler for receiving row updating events. Used by the DbCommandBuilder to autogenerate SQL statements that may not have previously been generated. </summary> <param name="adapter">A data adapter to receive events on.</param> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetDeleteCommand"> <summary> Returns the automatically-generated SQLite command to delete rows from the database </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetDeleteCommand(System.Boolean)"> <summary> Returns the automatically-generated SQLite command to delete rows from the database </summary> <param name="useColumnsForParameterNames"></param> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetUpdateCommand"> <summary> Returns the automatically-generated SQLite command to update rows in the database </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetUpdateCommand(System.Boolean)"> <summary> Returns the automatically-generated SQLite command to update rows in the database </summary> <param name="useColumnsForParameterNames"></param> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetInsertCommand"> <summary> Returns the automatically-generated SQLite command to insert rows into the database </summary> <returns></returns> </member> <member name="M:System.Data.SQLite.SQLiteCommandBuilder.GetInsertCommand(System.Boolean)"> <summary> Returns the automatically-generated SQLite command to insert rows into the database </summary> <param name="useColumnsForParameterNames"></param> <returns></returns> </member> <member name="P:System.Data.SQLite.SQLiteCommandBuilder.DataAdapter"> <summary> Gets/sets the DataAdapter for this CommandBuilder </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommandBuilder.CatalogLocation"> <summary> Overridden to hide its property from the designer </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommandBuilder.CatalogSeparator"> <summary> Overridden to hide its property from the designer </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommandBuilder.QuotePrefix"> <summary> Overridden to hide its property from the designer </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommandBuilder.QuoteSuffix"> <summary> Overridden to hide its property from the designer </summary> </member> <member name="P:System.Data.SQLite.SQLiteCommandBuilder.SchemaSeparator"> <summary> Overridden to hide its property from the designer </summary> </member> </members> </doc> |
Changes to bin/System.Data.SQLite.dll.
cannot compute difference between binary files
Changes to bin/itanium/System.Data.SQLite.DLL.
cannot compute difference between binary files
Changes to bin/test.exe.
cannot compute difference between binary files
Changes to bin/x64/System.Data.SQLite.DLL.
cannot compute difference between binary files
Changes to readme.htm.
1 2 3 4 5 6 7 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> ADO.NET 2.0 SQLite Data Provider<br> | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> ADO.NET 2.0 SQLite Data Provider<br> Version 1.0.25.0 Jan 31, 2006<br> Using SQLite 3.3.3<br> Written by Robert Simpson (<a href="mailto:robert@blackcastlesoft.com">robert@blackcastlesoft.com</a>)<br> Released to the public domain, use at your own risk!<br> <br> The latest version can be downloaded <a href="http://sourceforge.net/projects/sqlite-dotnet2"> here</a> <br> <br> |
︙ | ︙ | |||
110 111 112 113 114 115 116 | <b><A name="redist"></A>Distributing The SQLite Engine and ADO.NET Assembly</b></h2> <P> Only the <STRONG>System.Data.SQLite.DLL</STRONG> file needs to be distributed with your application(s). This DLL contains both the managed wrapper and the native SQLite3 codebase.</P> <H2><B>Development Notes Regarding the SQLite 3 Source Code</B></H2> <p> | | | < < < > > > > > > > > > > > > > > > > > > > | 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | <b><A name="redist"></A>Distributing The SQLite Engine and ADO.NET Assembly</b></h2> <P> Only the <STRONG>System.Data.SQLite.DLL</STRONG> file needs to be distributed with your application(s). This DLL contains both the managed wrapper and the native SQLite3 codebase.</P> <H2><B>Development Notes Regarding the SQLite 3 Source Code</B></H2> <p> The SQLite3 source code is compiled directly from the SQLite.org release sources. All builds of sqlite after 3.2.8 have included support for Windows CE. Additionally, two minor modifications are made to the sources, those modifications are made automatically by the fixsource.vbs file when the VS2005 solution is compiled.</p> <p></p> <p> <b>Version History</b></p> <p><b>1.0.25.0 - January 31, 2006</b></p> <ul> <li>Code merge with SQLite 3.3.3</li><li>Added automatic distributed transaction enlistment and implemented the DbConnection.EnlistTransaction method for manual enlistment.</li> <li>Nested transactions are now supported.</li> <li>Rearranged the timing of SetPassword(), which now must be called before the database is opened instead of afterwards. Optionally, the password can be supplied in the ConnectionString.</li> <li>Fixed a bug in SQLiteFunction that caused a failure when an empty resultset was returned and a custom user aggregate function was used in the query.</li> <li>The designer has had another round of cleanup applied, in preparation for moving to a VS package.</li> <li>Added SQLiteMetaDataCollectionNames class.</li> </ul> <p><b>1.0.24.6 beta - January 23, 2006</b></p> <ul> <li>This beta is built from sqlite.org's 3.3.2 beta.</li><li>Eliminated the static linking of mscoree from all binaries. Native projects can now use the library without any dependencies on the .NET framework, while managed projects continue to be able to use the library normally.</li></ul> <p><b>1.0.24.5 beta - January 20, 2006</b></p> <ul> <li>This beta is built from sqlite.org's 3.3.1 alpha and contains development-in-progress code. Therefore no guarantees can be made regarding its suitability for production use.</li> <li><strong>You no longer need to distribute 2 files on the CompactFramework. You can delete SQLite.Interop.DLL entirely. </strong>I wrote a custom tool called "mergebin" (available in the source zip file) which combines the two libraries |
︙ | ︙ |
Changes to testce/testce.csproj.
︙ | ︙ | |||
51 52 53 54 55 56 57 | <Reference Include="System"> <Private>False</Private> </Reference> <Reference Include="System.Data"> <Private>False</Private> </Reference> <Reference Include="System.Data.SQLite, Version=1.0.24.5, Culture=neutral, PublicKeyToken=1fdb50b1b62b4c84, processorArchitecture=x86"> | > | | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | <Reference Include="System"> <Private>False</Private> </Reference> <Reference Include="System.Data"> <Private>False</Private> </Reference> <Reference Include="System.Data.SQLite, Version=1.0.24.5, Culture=neutral, PublicKeyToken=1fdb50b1b62b4c84, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> <Private>False</Private> </Reference> <Reference Include="System.Drawing"> <Private>False</Private> </Reference> <Reference Include="System.Windows.Forms"> <Private>False</Private> </Reference> |
︙ | ︙ |