blob: 205372f36a952d4e56f77cb4ea08dad03eea689f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package SQLite.JDBC2y;
import java.sql.Types;
import java.util.Vector;
public class TableResultX extends SQLite.TableResult {
public int sql_type[];
public TableResultX() {
super();
sql_type = new int[this.ncolumns];
for (int i = 0; i < this.ncolumns; i++) {
sql_type[i] = Types.VARCHAR;
}
}
public TableResultX(SQLite.TableResult tr) {
this.column = tr.column;
this.rows = tr.rows;
this.ncolumns = tr.ncolumns;
this.nrows = tr.nrows;
this.types = tr.types;
sql_type = new int[tr.ncolumns];
for (int i = 0; i < this.ncolumns; i++) {
sql_type[i] = Types.VARCHAR;
}
if (tr.types != null) {
for (int i = 0; i < tr.types.length; i++) {
sql_type[i] = JDBCDatabaseMetaData.mapSqlType(tr.types[i]);
}
}
}
void sql_types(int types[]) {
sql_type = types;
}
}
|