Definition at line 995 of file raster2pgsql.c.
References _, append_sql_to_buffer(), rtalloc(), rterror(), and rtgdalraster::sql.
Referenced by process_rasters().
999 len = strlen(
"DROP TABLE IF EXISTS ;") + 1;
1001 len += strlen(schema);
1002 len += strlen(table);
1004 sql =
rtalloc(
sizeof(
char) * len);
1006 rterror(
_(
"drop_table: Could not allocate memory for DROP TABLE statement"));
1009 sprintf(sql,
"DROP TABLE IF EXISTS %s%s;",
1010 (schema != NULL ? schema :
""),
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
void * rtalloc(size_t size)
Wrappers used for managing memory.
static int append_sql_to_buffer(STRINGBUFFER *buffer, const char *str)