create and write SQL statements. uses ondisk schema */
| 2054 | |
| 2055 | /* create and write SQL statements. uses ondisk schema */ |
| 2056 | int create_sqlmaster_records(void *tran) |
| 2057 | { |
| 2058 | int table; |
| 2059 | int rc = 0; |
| 2060 | sql_mem_init(NULL); |
| 2061 | for (table = 0; table < thedb->num_dbs && rc == 0; table++) { |
| 2062 | rc = create_sqlmaster_record(thedb->dbs[table], tran); |
| 2063 | } |
| 2064 | |
| 2065 | sql_mem_shutdown(NULL); |
| 2066 | return rc; |
| 2067 | } |
| 2068 | |
| 2069 | char *sqltype(struct field *f, char *buf, int len) |
| 2070 | { |
no test coverage detected