blob: 9eacbd94e2fa9bfbb4767acea16b2f2d5b0eb039 (
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
31
32
33
34
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2009, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
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 = AnyRef;
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.");
}
|