亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pragma.c

?? sqlite庫
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*** 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.120 2006/03/03 21:20:17 drh Exp $*/#include "sqliteInt.h"#include "os.h"#include <ctype.h>/* Ignore this whole file if pragmas are disabled*/#if !defined(SQLITE_OMIT_PRAGMA) && !defined(SQLITE_OMIT_PARSER)#if defined(SQLITE_DEBUG) || defined(SQLITE_TEST)# include "pager.h"# include "btree.h"#endif/*** Interpret the given string as a safety level.  Return 0 for OFF,** 1 for ON or NORMAL and 2 for FULL.  Return 1 for an empty or ** unrecognized string argument.**** Note that the values returned are one less that the values that** should be passed into sqlite3BtreeSetSafetyLevel().  The is done** to support legacy SQL code.  The safety level used to be boolean** and older scripts may have used numbers 0 for OFF and 1 for ON.*/static int getSafetyLevel(const char *z){                             /* 123456789 123456789 */  static const char zText[] = "onoffalseyestruefull";  static const u8 iOffset[] = {0, 1, 2, 4, 9, 12, 16};  static const u8 iLength[] = {2, 2, 3, 5, 3, 4, 4};  static const u8 iValue[] =  {1, 0, 0, 0, 1, 1, 2};  int i, n;  if( isdigit(*z) ){    return atoi(z);  }  n = strlen(z);  for(i=0; i<sizeof(iLength); i++){    if( iLength[i]==n && sqlite3StrNICmp(&zText[iOffset[i]],z,n)==0 ){      return iValue[i];    }  }  return 1;}/*** Interpret the given string as a boolean value.*/static int getBoolean(const char *z){  return getSafetyLevel(z)&1;}#ifndef SQLITE_OMIT_PAGER_PRAGMAS/*** Interpret the given string as a temp db location. Return 1 for file** backed temporary databases, 2 for the Red-Black tree in memory database** and 0 to use the compile-time default.*/static int getTempStore(const char *z){  if( z[0]>='0' && z[0]<='2' ){    return z[0] - '0';  }else if( sqlite3StrICmp(z, "file")==0 ){    return 1;  }else if( sqlite3StrICmp(z, "memory")==0 ){    return 2;  }else{    return 0;  }}#endif /* SQLITE_PAGER_PRAGMAS */#ifndef SQLITE_OMIT_PAGER_PRAGMAS/*** Invalidate temp storage, either when the temp storage is changed** from default, or when 'file' and the temp_store_directory has changed*/static int invalidateTempStorage(Parse *pParse){  sqlite3 *db = pParse->db;  if( db->aDb[1].pBt!=0 ){    if( db->flags & SQLITE_InTrans ){      sqlite3ErrorMsg(pParse, "temporary storage cannot be changed "        "from within a transaction");      return SQLITE_ERROR;    }    sqlite3BtreeClose(db->aDb[1].pBt);    db->aDb[1].pBt = 0;    sqlite3ResetInternalSchema(db, 0);  }  return SQLITE_OK;}#endif /* SQLITE_PAGER_PRAGMAS */#ifndef SQLITE_OMIT_PAGER_PRAGMAS/*** If the TEMP database is open, close it and mark the database schema** as needing reloading.  This must be done when using the TEMP_STORE** or DEFAULT_TEMP_STORE pragmas.*/static int changeTempStorage(Parse *pParse, const char *zStorageType){  int ts = getTempStore(zStorageType);  sqlite3 *db = pParse->db;  if( db->temp_store==ts ) return SQLITE_OK;  if( invalidateTempStorage( pParse ) != SQLITE_OK ){    return SQLITE_ERROR;  }  db->temp_store = ts;  return SQLITE_OK;}#endif /* SQLITE_PAGER_PRAGMAS *//*** Generate code to return a single integer value.*/static void returnSingleInt(Parse *pParse, const char *zLabel, int value){  Vdbe *v = sqlite3GetVdbe(pParse);  sqlite3VdbeAddOp(v, OP_Integer, value, 0);  if( pParse->explain==0 ){    sqlite3VdbeSetNumCols(v, 1);    sqlite3VdbeSetColName(v, 0, COLNAME_NAME, zLabel, P3_STATIC);  }  sqlite3VdbeAddOp(v, OP_Callback, 1, 0);}#ifndef SQLITE_OMIT_FLAG_PRAGMAS/*** Check to see if zRight and zLeft refer to a pragma that queries** or changes one of the flags in db->flags.  Return 1 if so and 0 if not.** Also, implement the pragma.*/static int flagPragma(Parse *pParse, const char *zLeft, const char *zRight){  static const struct sPragmaType {    const char *zName;  /* Name of the pragma */    int mask;           /* Mask for the db->flags value */  } aPragma[] = {    { "vdbe_trace",               SQLITE_VdbeTrace     },    { "sql_trace",                SQLITE_SqlTrace      },    { "vdbe_listing",             SQLITE_VdbeListing   },    { "full_column_names",        SQLITE_FullColNames  },    { "short_column_names",       SQLITE_ShortColNames },    { "count_changes",            SQLITE_CountRows     },    { "empty_result_callbacks",   SQLITE_NullCallback  },    { "legacy_file_format",       SQLITE_LegacyFileFmt },    { "fullfsync",                SQLITE_FullFSync     },#ifndef SQLITE_OMIT_CHECK    { "ignore_check_constraints", SQLITE_IgnoreChecks  },#endif    /* The following is VERY experimental */    { "writable_schema",          SQLITE_WriteSchema   },    { "omit_readlock",            SQLITE_NoReadlock    },    /* TODO: Maybe it shouldn't be possible to change the ReadUncommitted    ** flag if there are any active statements. */    { "read_uncommitted",         SQLITE_ReadUncommitted },  };  int i;  const struct sPragmaType *p;  for(i=0, p=aPragma; i<sizeof(aPragma)/sizeof(aPragma[0]); i++, p++){    if( sqlite3StrICmp(zLeft, p->zName)==0 ){      sqlite3 *db = pParse->db;      Vdbe *v;      v = sqlite3GetVdbe(pParse);      if( v ){        if( zRight==0 ){          returnSingleInt(pParse, p->zName, (db->flags & p->mask)!=0 );        }else{          if( getBoolean(zRight) ){            db->flags |= p->mask;          }else{            db->flags &= ~p->mask;          }        }      }      return 1;    }  }  return 0;}#endif /* SQLITE_OMIT_FLAG_PRAGMAS *//*** Process a pragma statement.  **** Pragmas are of this form:****      PRAGMA [database.]id [= value]**** The identifier might also be a string.  The value is a string, and** identifier, or a number.  If minusFlag is true, then the value is** a number that was preceded by a minus sign.**** If the left side is "database.id" then pId1 is the database name** and pId2 is the id.  If the left side is just "id" then pId1 is the** id and pId2 is any empty string.*/void sqlite3Pragma(  Parse *pParse,   Token *pId1,        /* First part of [database.]id field */  Token *pId2,        /* Second part of [database.]id field, or NULL */  Token *pValue,      /* Token for <value>, or NULL */  int minusFlag       /* True if a '-' sign preceded <value> */){  char *zLeft = 0;       /* Nul-terminated UTF-8 string <id> */  char *zRight = 0;      /* Nul-terminated UTF-8 string <value>, or NULL */  const char *zDb = 0;   /* The database name */  Token *pId;            /* Pointer to <id> token */  int iDb;               /* Database index for <database> */  sqlite3 *db = pParse->db;  Db *pDb;  Vdbe *v = sqlite3GetVdbe(pParse);  if( v==0 ) return;  /* Interpret the [database.] part of the pragma statement. iDb is the  ** index of the database this pragma is being applied to in db.aDb[]. */  iDb = sqlite3TwoPartName(pParse, pId1, pId2, &pId);  if( iDb<0 ) return;  pDb = &db->aDb[iDb];  /* If the temp database has been explicitly named as part of the   ** pragma, make sure it is open.   */  if( iDb==1 && sqlite3OpenTempDatabase(pParse) ){    return;  }  zLeft = sqlite3NameFromToken(pId);  if( !zLeft ) return;  if( minusFlag ){    zRight = sqlite3MPrintf("-%T", pValue);  }else{    zRight = sqlite3NameFromToken(pValue);  }  zDb = ((iDb>0)?pDb->zName:0);  if( sqlite3AuthCheck(pParse, SQLITE_PRAGMA, zLeft, zRight, zDb) ){    goto pragma_out;  } #ifndef SQLITE_OMIT_PAGER_PRAGMAS  /*  **  PRAGMA [database.]default_cache_size  **  PRAGMA [database.]default_cache_size=N  **  ** The first form reports the current persistent setting for the  ** page cache size.  The value returned is the maximum number of  ** pages in the page cache.  The second form sets both the current  ** page cache size value and the persistent page cache size value  ** stored in the database file.  **  ** The default cache size is stored in meta-value 2 of page 1 of the  ** database file.  The cache size is actually the absolute value of  ** this memory location.  The sign of meta-value 2 determines the  ** synchronous setting.  A negative value means synchronous is off  ** and a positive value means synchronous is on.  */  if( sqlite3StrICmp(zLeft,"default_cache_size")==0 ){    static const VdbeOpList getCacheSize[] = {      { OP_ReadCookie,  0, 2,        0},  /* 0 */      { OP_AbsValue,    0, 0,        0},      { OP_Dup,         0, 0,        0},      { OP_Integer,     0, 0,        0},      { OP_Ne,          0, 6,        0},      { OP_Integer,     0, 0,        0},  /* 5 */      { OP_Callback,    1, 0,        0},    };    int addr;    if( sqlite3ReadSchema(pParse) ) goto pragma_out;    if( !zRight ){      sqlite3VdbeSetNumCols(v, 1);      sqlite3VdbeSetColName(v, 0, COLNAME_NAME, "cache_size", P3_STATIC);      addr = sqlite3VdbeAddOpList(v, ArraySize(getCacheSize), getCacheSize);      sqlite3VdbeChangeP1(v, addr, iDb);      sqlite3VdbeChangeP1(v, addr+5, MAX_PAGES);    }else{      int size = atoi(zRight);      if( size<0 ) size = -size;      sqlite3BeginWriteOperation(pParse, 0, iDb);      sqlite3VdbeAddOp(v, OP_Integer, size, 0);      sqlite3VdbeAddOp(v, OP_ReadCookie, iDb, 2);      addr = sqlite3VdbeAddOp(v, OP_Integer, 0, 0);      sqlite3VdbeAddOp(v, OP_Ge, 0, addr+3);      sqlite3VdbeAddOp(v, OP_Negative, 0, 0);      sqlite3VdbeAddOp(v, OP_SetCookie, iDb, 2);      pDb->pSchema->cache_size = size;      sqlite3BtreeSetCacheSize(pDb->pBt, pDb->pSchema->cache_size);    }  }else  /*  **  PRAGMA [database.]page_size  **  PRAGMA [database.]page_size=N  **  ** The first form reports the current setting for the  ** database page size in bytes.  The second form sets the  ** database page size value.  The value can only be set if  ** the database has not yet been created.  */  if( sqlite3StrICmp(zLeft,"page_size")==0 ){    Btree *pBt = pDb->pBt;    if( !zRight ){      int size = pBt ? sqlite3BtreeGetPageSize(pBt) : 0;      returnSingleInt(pParse, "page_size", size);    }else{      sqlite3BtreeSetPageSize(pBt, atoi(zRight), -1);    }  }else#endif /* SQLITE_OMIT_PAGER_PRAGMAS */  /*  **  PRAGMA [database.]auto_vacuum  **  PRAGMA [database.]auto_vacuum=N  **  ** Get or set the (boolean) value of the database 'auto-vacuum' parameter.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区日韩精品| 亚洲精品在线三区| 欧美视频你懂的| 制服丝袜亚洲色图| 精品日韩99亚洲| 久久久久久久久97黄色工厂| 亚洲视频一区二区免费在线观看| 亚洲欧美日韩综合aⅴ视频| 亚洲777理论| 国产成人综合亚洲91猫咪| a美女胸又www黄视频久久| 欧美性淫爽ww久久久久无| 日韩一区二区三区在线视频| 国产亲近乱来精品视频| 夜夜夜精品看看| 久久99热狠狠色一区二区| 高清shemale亚洲人妖| 在线观看免费亚洲| 日韩一区二区免费视频| 精品电影一区二区三区| 亚洲美女视频在线| 奇米四色…亚洲| 99久久久久久| 欧美一级片在线观看| 日本一区二区三区四区| 日韩av电影免费观看高清完整版| 国产mv日韩mv欧美| 91精品啪在线观看国产60岁| 国产欧美一区二区在线| 亚洲主播在线观看| 成人激情黄色小说| 777a∨成人精品桃花网| 亚洲国产成人午夜在线一区| 亚洲成人一区在线| 国产成人亚洲综合a∨婷婷| 欧美电影影音先锋| 国产精品久久久久久久浪潮网站| 午夜精品久久久久久久99水蜜桃| 高清不卡一二三区| 51精品视频一区二区三区| 国产精品欧美极品| 久久99在线观看| 在线观看日韩高清av| 久久久综合视频| 蜜桃免费网站一区二区三区| 91色porny在线视频| 久久久亚洲精品一区二区三区| 亚洲一区二区精品3399| 国产不卡在线一区| 2021久久国产精品不只是精品| 亚洲已满18点击进入久久| 美日韩黄色大片| 欧美视频一区二区在线观看| 久久精品男人天堂av| 麻豆91精品视频| 在线观看免费一区| 日本一区二区不卡视频| 国产激情一区二区三区四区| 欧美日韩一级片在线观看| 一区二区三区.www| 成人妖精视频yjsp地址| 欧美日本一区二区三区| 一区二区三区精密机械公司| 国产91精品免费| 国产日韩一级二级三级| 国产呦精品一区二区三区网站| 欧美乱熟臀69xxxxxx| 亚洲第一成人在线| 91国产免费观看| 一区二区三区日韩在线观看| 不卡av在线免费观看| 欧美国产97人人爽人人喊| 福利一区福利二区| 久久久久久亚洲综合影院红桃| 国模一区二区三区白浆| 日韩色视频在线观看| 亚洲成人久久影院| 欧美高清激情brazzers| 亚洲成人一二三| 欧美高清激情brazzers| 亚洲专区一二三| 色屁屁一区二区| 亚洲综合图片区| 在线免费亚洲电影| 亚洲福利一区二区| 欧美在线视频你懂得| 一二三四社区欧美黄| 欧美日韩一级二级| 亚洲va国产天堂va久久en| 欧美色老头old∨ideo| 亚洲一区二三区| 欧美伊人久久大香线蕉综合69| 亚洲午夜一区二区| 9191国产精品| 国产一区二区免费在线| 久久久久综合网| 成人精品免费看| 玉足女爽爽91| 欧美视频精品在线观看| 青青草国产精品97视觉盛宴| 欧美videofree性高清杂交| 免费av网站大全久久| 欧美精品一区二区三区很污很色的| 麻豆一区二区三| 中文天堂在线一区| 99综合影院在线| 中文字幕一区二| 欧美精品xxxxbbbb| 激情久久久久久久久久久久久久久久| 久久嫩草精品久久久久| 成人高清伦理免费影院在线观看| 26uuu国产一区二区三区 | 欧美放荡的少妇| 国产一区二区导航在线播放| 国产亚洲美州欧州综合国| 本田岬高潮一区二区三区| 亚洲风情在线资源站| 日韩视频123| 91啪亚洲精品| 三级影片在线观看欧美日韩一区二区| 欧美老女人第四色| 国产麻豆精品95视频| 一区精品在线播放| 日韩一区二区高清| 一区二区三区在线看| 欧洲精品一区二区三区在线观看| 精品亚洲成a人在线观看| 天使萌一区二区三区免费观看| 中文字幕中文字幕在线一区| 国产免费成人在线视频| 国产色一区二区| 日本一区二区在线不卡| 国产偷国产偷精品高清尤物| 中文字幕第一区第二区| 亚洲欧美日韩电影| 91毛片在线观看| 亚洲电影第三页| 欧美激情综合网| 欧美日韩精品三区| 奇米在线7777在线精品| 亚洲欧美综合另类在线卡通| 3751色影院一区二区三区| 92精品国产成人观看免费| 日韩高清在线一区| 欧美激情自拍偷拍| 欧美mv日韩mv| 91丨porny丨首页| 国产一区二区电影| 亚洲高清在线视频| 中文字幕日本乱码精品影院| 欧美一级日韩不卡播放免费| 99精品欧美一区| 国产精品99久久久久久有的能看| 亚洲一卡二卡三卡四卡无卡久久 | 亚洲欧美一区二区三区极速播放| 欧美高清精品3d| 99麻豆久久久国产精品免费优播| 日韩在线a电影| 中文字幕一区日韩精品欧美| 精品久久久久久久久久久院品网| 欧洲一区在线观看| 成人黄色在线看| 韩国一区二区三区| 天堂一区二区在线| 亚洲自拍都市欧美小说| 国产精品色眯眯| 欧美一区二区三区视频在线观看| 欧美又粗又大又爽| 成a人片国产精品| 国产91在线|亚洲| 麻豆专区一区二区三区四区五区| 丝袜美腿亚洲色图| 一区二区三区国产豹纹内裤在线| 日韩欧美黄色影院| 91精品在线观看入口| 欧美无乱码久久久免费午夜一区| 成人黄色在线网站| 国产一区二区精品久久99 | 8v天堂国产在线一区二区| 国产精品乡下勾搭老头1| 久久av中文字幕片| 蜜桃一区二区三区在线| 美女脱光内衣内裤视频久久网站| 亚洲午夜影视影院在线观看| 亚洲午夜精品网| 亚洲综合一二三区| 亚洲视频一区二区免费在线观看 | 国产伦理精品不卡| 韩国视频一区二区| 狠狠狠色丁香婷婷综合激情| 舔着乳尖日韩一区| 亚洲综合成人在线视频| 亚洲精品精品亚洲| 亚洲成a人v欧美综合天堂 | 在线看国产一区| 在线欧美日韩精品| 欧美色精品在线视频| 欧美一区二区三区思思人| 91精品综合久久久久久| 欧美视频你懂的|