Revert fix Native MySQL 8.2.0 jdbc gets ob bolean type result error
This commit is contained in:
parent
be83d034b1
commit
231610e238
@ -3062,9 +3062,6 @@ int ObResolverUtils::resolve_const(const ParseNode *node,
|
||||
case T_BOOL: {
|
||||
val.set_is_boolean(true);
|
||||
val.set_bool(node->value_ == 1 ? true : false);
|
||||
if (lib::is_mysql_mode()) {
|
||||
val.meta_.set_int();
|
||||
}
|
||||
val.set_scale(0);
|
||||
val.set_precision(1);
|
||||
val.set_length(1);
|
||||
|
@ -104,10 +104,10 @@ def 0x636174 253 5 3 N 129 0 63
|
||||
cat
|
||||
SELECT TRUE, true, FALSE, false;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def TRUE 8 1 1 N 32897 0 63
|
||||
def true 8 1 1 N 32897 0 63
|
||||
def FALSE 8 1 1 N 32897 0 63
|
||||
def false 8 1 1 N 32897 0 63
|
||||
def TRUE 1 1 1 N 32897 0 63
|
||||
def true 1 1 1 N 32897 0 63
|
||||
def FALSE 1 1 1 N 32897 0 63
|
||||
def false 1 1 1 N 32897 0 63
|
||||
TRUE true FALSE false
|
||||
1 1 0 0
|
||||
select 'abcde';
|
||||
|
@ -463,10 +463,10 @@ def 0x636174 253 3 3 N 129 0 63
|
||||
cat
|
||||
SELECT TRUE, true, FALSE, false;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def TRUE 8 1 1 N 32897 0 63
|
||||
def true 8 1 1 N 32897 0 63
|
||||
def FALSE 8 1 1 N 32897 0 63
|
||||
def false 8 1 1 N 32897 0 63
|
||||
def TRUE 1 1 1 N 32897 0 63
|
||||
def true 1 1 1 N 32897 0 63
|
||||
def FALSE 1 1 1 N 32897 0 63
|
||||
def false 1 1 1 N 32897 0 63
|
||||
TRUE true FALSE false
|
||||
1 1 0 0
|
||||
select 'abcde';
|
||||
|
Loading…
x
Reference in New Issue
Block a user