1 30 31 32 package org.hsqldb.util; 33 34 import java.sql.Types ; 35 36 39 45 class InformixTransferHelper extends TransferHelper { 46 47 public InformixTransferHelper() { 48 super(); 49 } 50 51 public InformixTransferHelper(TransferDb database, Traceable t, 52 String q) { 53 super(database, t, q); 54 } 55 56 void setSchema(String _Schema) { 57 sSchema = "\"" + _Schema + "\""; 58 } 59 60 int convertFromType(int type) { 61 62 if (type == Types.TIMESTAMP) { 66 type = Types.TIME; 67 68 tracer.trace("Converted INFORMIX TIMESTAMP to TIME"); 69 } else if (type == Types.TIME) { 70 type = Types.TIMESTAMP; 71 72 tracer.trace("Converted INFORMIX TIME to TIMESTAMP"); 73 } 74 75 return (type); 76 } 77 78 int convertToType(int type) { 79 80 if (type == Types.TIMESTAMP) { 84 type = Types.TIME; 85 86 tracer.trace("Converted TIMESTAMP to INFORMIX TIME"); 87 } else if (type == Types.TIME) { 88 type = Types.TIMESTAMP; 89 90 tracer.trace("Converted TIME to INFORMIX TIMESTAMP"); 91 } 92 93 return (type); 94 } 95 } 96 | Popular Tags |