| @@ 424-427 (lines=4) @@ | ||
| 421 | * @return bool ou requete |
|
| 422 | */ |
|
| 423 | function spip_pg_create_index($nom, $table, $champs, $serveur = '', $requeter = true) { |
|
| 424 | if (!($nom or $table or $champs)) { |
|
| 425 | spip_log("Champ manquant pour creer un index pg ($nom, $table, (" . @join(',', $champs) . "))", |
|
| 426 | 'pg.' . _LOG_ERREUR); |
|
| 427 | ||
| 428 | return false; |
|
| 429 | } |
|
| 430 | ||
| @@ 554-557 (lines=4) @@ | ||
| 551 | * string : requĂȘte, false si erreur, true sinon. |
|
| 552 | */ |
|
| 553 | function spip_sqlite_create_index($nom, $table, $champs, $unique = '', $serveur = '', $requeter = true) { |
|
| 554 | if (!($nom or $table or $champs)) { |
|
| 555 | spip_log("Champ manquant pour creer un index sqlite ($nom, $table, (" . join(',', $champs) . "))", |
|
| 556 | 'sqlite.' . _LOG_ERREUR); |
|
| 557 | ||
| 558 | return false; |
|
| 559 | } |
|
| 560 | ||