Software / code / prosody
Comparison
plugins/mod_storage_sql.lua @ 7755:19aa9b1ef9e8
mod_storage_sql: Don't say 'Unknown command' if no command was given (fixes attempt to concatenate nil)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 01 Dec 2016 10:02:01 +0100 |
| parent | 7753:c276d72d4e17 |
| child | 7756:274d0e57cc60 |
comparison
equal
deleted
inserted
replaced
| 7754:560d2e758d4c | 7755:19aa9b1ef9e8 |
|---|---|
| 502 print("Checking "..params.database.."..."); | 502 print("Checking "..params.database.."..."); |
| 503 engine = sql:create_engine(params); | 503 engine = sql:create_engine(params); |
| 504 upgrade_table(params, true); | 504 upgrade_table(params, true); |
| 505 end | 505 end |
| 506 print("All done!"); | 506 print("All done!"); |
| 507 elseif command then | |
| 508 print("Unknown command: "..command); | |
| 507 else | 509 else |
| 508 print("Unknown command: "..command); | 510 print("Unknown command: "..command); |
| 509 end | 511 end |
| 510 end | 512 end |