~akiban-technologies/akiban-client-tools/trunk

« back to all changes in this revision

Viewing changes to src/main/java/com/akiban/client/dump/DumpClient.java

  • Committer: build-akiban
  • Date: 2013-04-26 13:57:18 UTC
  • mfrom: (24.1.2 client-more-types)
  • Revision ID: build@akiban.com-20130426135718-vrgzg06xfqf8h1y3
merge mmcm: Handling remaining type special cases (name from AIS doesn't match what needs to be dumped) and add a test for most of the types that should now pass through okay.

https://code.launchpad.net/~mmcm/akiban-client-tools/more-types/+merge/161009

Show diffs side-by-side

added added

removed removed

Lines of Context:
630
630
            sql.append(type.toUpperCase());
631
631
            sql.append('(').append(length).append(')');
632
632
        }
633
 
        else if ("varbinary".equals(type)) {
634
 
            sql.append("VARCHAR");
 
633
        else if ("varbinary".equals(type) ||
 
634
                 "binary".equals(type)) {
 
635
            sql.append("binary".equals(type) ? "CHAR" : "VARCHAR");
635
636
            sql.append('(').append(length).append(')');
636
637
            sql.append(" FOR BIT DATA");
637
638
        }
 
639
        else if ("float".equals(type)) {
 
640
            sql.append("REAL");
 
641
        }
638
642
        else {
639
643
            // Fixed-size numerics have a length, but it doesn't mean much.
640
644
            sql.append(type.toUpperCase());