cubrid icon indicating copy to clipboard operation
cubrid copied to clipboard

[CBRD-21022] CAS down for executeBatch with CLOB/BLOB columns

Open kisoo-han opened this issue 8 years ago • 1 comments

  • CAS down for Addbatch with CLOB/BLOB columns could be minor bug.
  • However, it couldn't be treated as other minor bugs.
  • As you can see in comments [#CBRD-21022], two solutions are suggested.
  • Both modifies 'src/parser/xasl_generation.c' as follow
  1. Modify function 'parser_generate_xasl_pre()' This, in some sense of meaning, could be a protection code. Because nobody think the value 'node->info.query.xasl' is NULL when node->node_type is PT_SELECT. However, this happened as you can see in description of [#CBRD-21022].

  2. Modify function 'pt_to_insert_xasl()' This, check and force the value node->node_type to NULL before parser_generate_xasl_pre() is called. It is limited solution than previously suggested.

  • In this PR, solution 1 is suggested because it could be more safe & simple and could be protection code. (parser_generate_xasl_pre() & parser_generate_xasl_post() are combined. And if 1st function is called, then always 2nd function will be called.)

  • And, parser_generate_xasl_post() always calls 'pt_pop_symbol_info()' when the node_type is PT_SELECT.

  • And, if 'pt_push_symbol_info()' was not executed before, it could be trouble.

  • QA for SQL/jdbc for this modification was performed, and '4,000 continuous executeBatch were performed each contains 100 addBatch respectively with CLOB column.

  • If you disagree with this suggestion or different idea on it, please reverts this PR and give me a comment on it.

kisoo-han avatar Mar 14 '17 01:03 kisoo-han

Build comment file:

File: src/parser/xasl_generation.c (6 incorrect indentation(s) found)

 20384       if (!node->info.query.xasl)
 20385 	{
 20386 	  (void) pt_query_set_reference (parser, node);
 20387 	}
 20388       pt_push_symbol_info (parser, node);
 20389       break;

Please run 'indent -l120 -lc120' to correct the indentation


cubridci avatar Mar 14 '17 01:03 cubridci

This issue will be addressed by another developer.

kisoo-han avatar Mar 30 '23 06:03 kisoo-han