Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
0243e2d8
提交
0243e2d8
authored
14 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improved error message.
上级
aa8bb832
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
Value.java
h2/src/main/org/h2/value/Value.java
+9
-9
ValueArray.java
h2/src/main/org/h2/value/ValueArray.java
+1
-1
ValueResultSet.java
h2/src/main/org/h2/value/ValueResultSet.java
+2
-2
没有找到文件。
h2/src/main/org/h2/value/Value.java
浏览文件 @
0243e2d8
...
@@ -432,11 +432,11 @@ public abstract class Value {
...
@@ -432,11 +432,11 @@ public abstract class Value {
* @return the result
* @return the result
*/
*/
public
Value
add
(
Value
v
)
{
public
Value
add
(
Value
v
)
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"+"
);
}
}
public
int
getSignum
()
{
public
int
getSignum
()
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"SIGNUM"
);
}
}
/**
/**
...
@@ -445,7 +445,7 @@ public abstract class Value {
...
@@ -445,7 +445,7 @@ public abstract class Value {
* @return the negative
* @return the negative
*/
*/
public
Value
negate
()
{
public
Value
negate
()
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"NEG"
);
}
}
/**
/**
...
@@ -455,7 +455,7 @@ public abstract class Value {
...
@@ -455,7 +455,7 @@ public abstract class Value {
* @return the result
* @return the result
*/
*/
public
Value
subtract
(
Value
v
)
{
public
Value
subtract
(
Value
v
)
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"-"
);
}
}
/**
/**
...
@@ -465,7 +465,7 @@ public abstract class Value {
...
@@ -465,7 +465,7 @@ public abstract class Value {
* @return the result
* @return the result
*/
*/
public
Value
divide
(
Value
v
)
{
public
Value
divide
(
Value
v
)
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"/"
);
}
}
/**
/**
...
@@ -475,7 +475,7 @@ public abstract class Value {
...
@@ -475,7 +475,7 @@ public abstract class Value {
* @return the result
* @return the result
*/
*/
public
Value
multiply
(
Value
v
)
{
public
Value
multiply
(
Value
v
)
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"*"
);
}
}
/**
/**
...
@@ -973,11 +973,11 @@ public abstract class Value {
...
@@ -973,11 +973,11 @@ public abstract class Value {
/**
/**
* Throw the exception that the feature is not support for the given data type.
* Throw the exception that the feature is not support for the given data type.
*
*
* @return
the exception
* @return
never returns normally
* @throws the exception
* @throws the exception
*/
*/
protected
DbException
throwUnsupportedExceptionForType
()
{
protected
DbException
throwUnsupportedExceptionForType
(
String
op
)
{
throw
DbException
.
getUnsupportedException
(
DataType
.
getDataType
(
getType
()).
name
);
throw
DbException
.
getUnsupportedException
(
DataType
.
getDataType
(
getType
()).
name
+
" "
+
op
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/value/ValueArray.java
浏览文件 @
0243e2d8
...
@@ -93,7 +93,7 @@ public class ValueArray extends Value {
...
@@ -93,7 +93,7 @@ public class ValueArray extends Value {
}
}
public
void
set
(
PreparedStatement
prep
,
int
parameterIndex
)
{
public
void
set
(
PreparedStatement
prep
,
int
parameterIndex
)
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"PreparedStatement.set"
);
}
}
public
String
getSQL
()
{
public
String
getSQL
()
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/value/ValueResultSet.java
浏览文件 @
0243e2d8
...
@@ -114,7 +114,7 @@ public class ValueResultSet extends Value {
...
@@ -114,7 +114,7 @@ public class ValueResultSet extends Value {
}
}
protected
int
compareSecure
(
Value
v
,
CompareMode
mode
)
{
protected
int
compareSecure
(
Value
v
,
CompareMode
mode
)
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"<=>"
);
}
}
public
boolean
equals
(
Object
other
)
{
public
boolean
equals
(
Object
other
)
{
...
@@ -134,7 +134,7 @@ public class ValueResultSet extends Value {
...
@@ -134,7 +134,7 @@ public class ValueResultSet extends Value {
}
}
public
void
set
(
PreparedStatement
prep
,
int
parameterIndex
)
{
public
void
set
(
PreparedStatement
prep
,
int
parameterIndex
)
{
throw
throwUnsupportedExceptionForType
();
throw
throwUnsupportedExceptionForType
(
"PreparedStatement.set"
);
}
}
public
String
getSQL
()
{
public
String
getSQL
()
{
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论