[
https://issues.apache.org/jira/browse/TRAFODION-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077713#comment-16077713
]
ASF GitHub Bot commented on TRAFODION-2308:
-------------------------------------------
Github user xwq commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/1167#discussion_r126080927
--- Diff: core/sql/parser/sqlparser.y ---
@@ -11826,11 11827,40 @@ blob_optional_left_len_right: '('
NUMERIC_LITERAL_EXACT_NO_SCALE optional_blob_u
}
/* type int64 */
-optional_blob_unit : TOK_K {$$ = 1024;}
optional_lob_unit : TOK_K {$$ = 1024;}
| TOK_M {$$ = 1024*1024;}
| TOK_G {$$ = 1024*1024*1024;}
| empty {$$ = 1;}
clob_optional_left_len_right: '(' NUMERIC_LITERAL_EXACT_NO_SCALE
optional_lob_unit ')'
{
Int64 longIntVal = atoInt64($2->data());
if (longIntVal < 0)
{
// Error: Expected an unsigned integer
*SqlParser_Diags << DgSqlCode(-3017)
<< DgString0(*$2);
}
longIntVal = longIntVal * $3;
$$ = (Int64)longIntVal;
delete $2;
}
| empty
{
if (CmpCommon::getDefault(TRAF_CLOB_AS_VARCHAR) == DF_ON)
{
$$ = (Int64)100000;
}
else
{
$$ = (Int64)CmpCommon::getDefaultNumeric(LOB_MAX_SIZE)*1024*1024;
}
}
--- End diff --
I am not run TESTTOK2, thank you for running the extra tests.
> JDBC T4 support read LOB
> ------------------------
>
> Key: TRAFODION-2308
> URL: https://issues.apache.org/jira/browse/TRAFODION-2308
> Project: Apache Trafodion
> Issue Type: Sub-task
> Components: client-jdbc-t4, connectivity-mxosrvr
> Reporter: Weiqing Xu
> Assignee: Weiqing Xu
>
> JDBC T4 need implement some API to support CLOB and BLOB.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)