| 29 | ////////////////////////////////////////////////////////////////////////// |
| 30 | |
| 31 | bool create_option_tbl(acl::db_handle& db, const char* tbl_name, |
| 32 | const char* sql_create) |
| 33 | { |
| 34 | if (db.tbl_exists(tbl_name)) |
| 35 | { |
| 36 | logger("table(%s) exist", tbl_name); |
| 37 | return (true); |
| 38 | } |
| 39 | else if (db.sql_update(sql_create) == false) |
| 40 | { |
| 41 | logger_error("sql(%s) error", sql_create); |
| 42 | return (false); |
| 43 | } |
| 44 | else |
| 45 | { |
| 46 | logger("create table %s ok", tbl_name); |
| 47 | return (true); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | ////////////////////////////////////////////////////////////////////////// |
| 52 |
no test coverage detected
searching dependent graphs…