| 5490 | // |
| 5491 | |
| 5492 | static gpre_index* make_index( gpre_req* request, const TEXT* string) |
| 5493 | { |
| 5494 | if (gpreGlob.isc_databases && !gpreGlob.isc_databases->dbb_next) |
| 5495 | { |
| 5496 | // CVC: I've kept this silly code. What's the idea of the copy here? |
| 5497 | // If we are trying to limit the index name, the correct length is NAME_SIZE. |
| 5498 | TEXT s[ERROR_LENGTH]; |
| 5499 | fb_utils::copy_terminate(s, string, sizeof(s)); |
| 5500 | gpre_index* index = MET_make_index(s); |
| 5501 | if (request) |
| 5502 | request->req_database = gpreGlob.isc_databases; |
| 5503 | //index->ind_flags |= IND_meta; // nobody uses this info |
| 5504 | return index; |
| 5505 | } |
| 5506 | |
| 5507 | PAR_error("Can only reference INDEX in context of single database"); |
| 5508 | return NULL; // silence compiler warning |
| 5509 | } |
| 5510 | |
| 5511 | |
| 5512 | //____________________________________________________________ |
no test coverage detected