Changeset 38976
- Timestamp:
- Oct 27, 2015, 3:24:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/tools/src/fits_to_mysql.c
r38975 r38976 230 230 gfits_scan (header, field, "%s", 1, format); 231 231 232 // some special names must be protected: 233 if (!strcasecmp (tlabel, "index")) { strcpy (tlabel, "index_"); } 234 if (!strcasecmp (tlabel, "table")) { strcpy (tlabel, "table_"); } 235 232 236 // check for duplicates 233 237 int Ndup = 0; … … 299 303 char *tablename = strcreate (extname); 300 304 replace_dot_with_underscore (tablename); 305 306 // some special names must be protected: 307 if (!strcasecmp (tablename, "index")) { 308 free (tablename); 309 tablename = strcreate ("index_"); 310 } 311 if (!strcasecmp (tablename, "table")) { 312 free (tablename); 313 tablename = strcreate ("table_"); 314 } 301 315 302 316 // drop the table if it exists
Note:
See TracChangeset
for help on using the changeset viewer.
