MCPcopy Create free account
hub / github.com/audacity/audacity / idxIdentifierRequiresQuotes

Function idxIdentifierRequiresQuotes

lib-src/sqlite/shell.c:9164–9176  ·  view source on GitHub ↗

** Return true if zId must be quoted in order to use it as an SQL ** identifier, or false otherwise. */

Source from the content-addressed store, hash-verified

9162** identifier, or false otherwise.
9163*/
9164static int idxIdentifierRequiresQuotes(const char *zId){
9165 int i;
9166 for(i=0; zId[i]; i++){
9167 if( !(zId[i]=='_')
9168 && !(zId[i]>='0' && zId[i]<='9')
9169 && !(zId[i]>='a' && zId[i]<='z')
9170 && !(zId[i]>='A' && zId[i]<='Z')
9171 ){
9172 return 1;
9173 }
9174 }
9175 return 0;
9176}
9177
9178/*
9179** This function appends an index column definition suitable for constraint

Callers 2

idxAppendColDefnFunction · 0.85
idxCreateFromConsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected