** Return true if zId must be quoted in order to use it as an SQL ** identifier, or false otherwise. */
| 9162 | ** identifier, or false otherwise. |
| 9163 | */ |
| 9164 | static 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 |
no outgoing calls
no test coverage detected