Lines Matching refs:indexOf

122         var referencesIndex = name.toLowerCase().indexOf("references");
130 var referencedTableIndex = referencesSQL.indexOf("(");
131 var referencedPropertyIndex = referencesSQL.indexOf(")");
156 var referencesIndex = name.toLowerCase().indexOf("references");
158 if (name.toLowerCase().indexOf("foreign key(") !== -1) {
159 …var foreignKeySQL = name.substring(name.toLowerCase().indexOf("foreign key("), referencesIndex).re…
161 …var foreignKeySQL = name.substring(name.toLowerCase().indexOf("foreign key ("), referencesIndex).r…
165 var alterTableName = name.substring(0, name.indexOf("WITH")).replace('ALTER TABLE ', '');
173 var referencedTableIndex = referencesSQL.indexOf("(");
174 var referencedPropertyIndex = referencesSQL.indexOf(")");
311 if (name.indexOf(']') !== -1) {
312 name = name.substring(0, name.indexOf(']'));
395 if (tmp.indexOf("CONSTRAINT") !== -1 && tmp.indexOf("PRIMARY KEY") !== -1) {
399 if (tmp.indexOf("CONSTRAINT") !== -1 && tmp.indexOf("FOREIGN KEY") !== -1) {
415 if (name.indexOf("ASC") !== -1 ||
416 name.indexOf("DESC") !== -1 ||
417 name.indexOf("EXEC") !== -1 ||
418 name.indexOf("WITH") !== -1 ||
419 name.indexOf("ON") !== -1 ||
420 name.indexOf("ALTER") !== -1 ||
421 name.indexOf("/*") !== -1 ||
422 name.indexOf("CONSTRAIN") !== -1 ||
423 name.indexOf("SET") !== -1 ||
424 name.indexOf("NONCLUSTERED") !== -1 ||
425 name.indexOf("GO") !== -1 ||
426 name.indexOf("REFERENCES") !== -1) {
430 var firstSpaceIndex = name.indexOf(' ');
438 var firstSpaceIndex = name.indexOf(' ');
465 … if (name.indexOf('PRIMARY KEY') !== -1 && name.indexOf('CLUSTERED') === -1) {
478 if (primaryKeyRow.indexOf(')') !== -1) {
508 if (name.indexOf('REFERENCES') === -1) {