[ 
https://issues.apache.org/jira/browse/TRAFODION-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15084081#comment-15084081
 ] 

ASF GitHub Bot commented on TRAFODION-1473:
-------------------------------------------

Github user DaveBirdsall commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/248#discussion_r48912122
  
    --- Diff: core/sql/executor/ExExeUtilCli.cpp ---
    @@ -1048,6 +1052,77 @@ Lng32 ExeCliInterface::executeImmediateExec(const 
char * stmtStr,
       return ((cliRetcode != -1) ? cliRetcode : retcode);
     }
     
    +
    +Lng32 ExeCliInterface::executeImmediateExecNoDealloc(const char * stmtStr,
    +                                      char * outputBuf,
    +                                      Lng32 * outputBufLen,
    +                                      NABoolean nullTerminate,
    +                                      Int64 * rowsAffected 
    +                                      )
    +{
    +  Lng32 retcode = 0;
    +
    +  retcode = exec();
    +  if (retcode < 0)
    +    {
    +      deallocStuff(module_, stmt_, sql_src_, input_desc_, output_desc_);
    +      return retcode;
    +    }
    +
    +  retcode = fetch();
    +  if (retcode < 0)
    +    {
    +      deallocStuff(module_, stmt_, sql_src_, input_desc_, output_desc_);
    +      return retcode;
    +    }
    +
    +  if ((outputBuf) &&
    +      (outputBufLen))
    +    {
    +      *outputBufLen = 0;
    +      if (retcode != 100)
    +   {
    +     char * ptr;
    +     Lng32 len;
    +     getPtrAndLen(1, ptr, len);
    +
    +     str_cpy_all(outputBuf, ptr, len);
    --- End diff --
    
    Is there any buffer overrun checking done anywhere?


> Adding external buffer and file input and extract support  for  LOB datatypes
> -----------------------------------------------------------------------------
>
>                 Key: TRAFODION-1473
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1473
>             Project: Apache Trafodion
>          Issue Type: Task
>          Components: sql-cmp, sql-exe
>         Environment: Trafodion
>            Reporter: Sandhya Sundaresan
>            Assignee: Sandhya Sundaresan
>              Labels: features
>             Fix For: 1.2-incubating
>
>
> LOB datatype is disabled in Trafodion  until the following support is fully 
> in.
> Here are the list of tasks and items to support :
> 1. Support input of linux files (on platform)  into LOB columns.
> 2. Support extract of LOB data into linux files on platform.
> 3. Support input of hdfs files  into LOB columns.
> 4. Support extract of LOB data into hdfs files.
> 5. Support chunking to input a very large external file into LOB columns.
> 6. Use CQD concept to limit LOB max size and limit chunk size for extract 
> /input.
> TBD 
> 7. Support for  input/extract of external files off platform into LOB columns.
> 8. Support in connectivity and driver for real LOB data type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to