~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_drizzle.cc

  • Committer: Andrew Hutchings
  • Date: 2010-10-12 19:26:10 UTC
  • mto: (1856.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1857.
  • Revision ID: andrew@linuxjedi.co.uk-20101012192610-docm7q75dv4eaf0e
Add foriegn key support for MySQL

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
    fkey->parentColumns= row[1];
287
287
    fkey->childTable= row[2];
288
288
    fkey->childColumns= row[3];
289
 
    if (strcmp(row[4], "NONE") != 0)
290
 
      fkey->matchOption= row[4];
291
 
    else
292
 
      fkey->matchOption= "";
293
 
 
294
 
    if (strcmp(row[5], "UNDEFINED") != 0)
295
 
      fkey->deleteRule= row[5];
296
 
    else
297
 
      fkey->deleteRule= "";
298
 
 
299
 
    if (strcmp(row[6], "UNDEFINED") != 0)
300
 
      fkey->updateRule= row[6];
301
 
    else
302
 
      fkey->updateRule= "";
 
289
    fkey->matchOption= (strcmp(row[4], "NONE") != 0) ? row[4] : "";
 
290
    fkey->deleteRule= (strcmp(row[5], "UNDEFINED") != 0) ? row[5] : "";
 
291
    fkey->updateRule= (strcmp(row[6], "UNDEFINED") != 0) ? row[6] : "";
303
292
 
304
293
    fkeys.push_back(fkey);
305
294
  }