blob: 1e7895eb46838a90ccef3a8ebb4ef12b95ab5d97 (
plain) (
blame)
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
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2005, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
package scala.dbc.datatype;
/** The SQL type for a truth value. */
class Unknown extends DataType {
def isEquivalent(datatype: DataType) = datatype match {
case dt: Unknown =>
nativeTypeId == dt.nativeTypeId
case _ =>
false
}
def isSubtypeOf(datatype: DataType) = true;
type NativeType = Object;
val nativeTypeId = DataType.OBJECT;
/** A SQL-99 compliant string representation of the type. */
override def sqlString: java.lang.String =
error("The 'UNKNOWN' data type cannot be represented.");
}
|