Background Image

FORUM


* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.

OS
CentOS 7.9 64bit
CUBRID Ver.
CUBRID 11.4.4 (11.4.4.1832-7f8f019)
CUBRID TOOL Ver.
[도움말]-[버전정보] 확인
응용 환경(API)
java, php, odbc 등 입력


* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.

 

에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------
 

# test sample

1. java 생성

public class cubTest {

    public static String concatThree(String s1, String s2, String s3) {

        if (s1 == null) s1 = "";

        if (s2 == null) s2 = "";

        if (s3 == null) s3 = "";

        

        return s1 + s2 + s3;

    }

 

public static String concatTwo(String s1, String s2) {

        if (s1 == null) s1 = "";

        if (s2 == null) s2 = "";

        

        return s1 + s2;

    }

}

 

2. 함수 생성

CREATE FUNCTION fn_concat3(a VARCHAR, b VARCHAR, c VARCHAR) RETURN VARCHAR

AS LANGUAGE JAVA

NAME 'cubTest.concatThree(java.lang.String, java.lang.String, java.lang.String) return java.lang.String';

 

CREATE FUNCTION fn_concat2(a VARCHAR, b VARCHAR) RETURN VARCHAR

AS LANGUAGE JAVA

NAME 'cubTest.concatTwo(java.lang.String, java.lang.String) return java.lang.String';

 

# 이상 현상 : 함수에서 함수를 호출 할때 함수가 호출 되는 인자 위치에 따라 오류가 출력되거나 정상턴

1. 각기 함수 동작 test시 정상 동작

csql> select fn_concat2('123','456');

 

=== <Result of SELECT Command in Line 2> ===

 

  fn_concat2('123', '456')

======================

  '123456'            

 

1 row selected. (0.045001 sec) Committed. (0.000000 sec) 

 

1 command(s) successfully processed.

 

csql> select fn_concat3('12','34','56');

 

=== <Result of SELECT Command in Line 1> ===

 

  fn_concat3('12', '34', '56')

======================

  '123456'            

 

1 row selected. (0.008000 sec) Committed. (0.000000 sec) 

 

1 command(s) successfully processed.

 

2. 함수에서 다른 함수를 호출 하는 경우 위치에 따라 비정상 동작

2.1 인자 값이 2개인 함수

2.1.1 함수(함수, 'string') => 오류

csql> select fn_concat2(fn_concat2('123','456'),'123'); => 오류

 

In the command from line 1,

 

ERROR: Stored procedure execute error: 1

 

 

0 command(s) successfully processed.

 

2.1.2 함수( 'string', 함수) => 정상

csql> select fn_concat2('123',fn_concat2('123','456')); => 정상

 

=== <Result of SELECT Command in Line 1> ===

 

  fn_concat2('123', fn_concat2('123', '456'))

======================

  '123123456'         

 

1 row selected. (0.011001 sec) Committed. (0.000000 sec) 

 

1 command(s) successfully processed.

 

2.2 인자 값이 2개인 함수

2.2.1 함수(함수, 'string', 'string') => 오류

csql> select fn_concat3(fn_concat2('123','456'),'12','123'); => 오류

 

In the command from line 1,

 

ERROR: Stored procedure execute error: 1

 

 

0 command(s) successfully processed.

 

2.2.2 함수('string', 함수, 'string') => 오류

csql> select fn_concat3('123', fn_concat2('45','67'), '123'); => 오류

 

In the command from line 1,

 

ERROR: Stored procedure execute error: 2

 

 

0 command(s) successfully processed.

 

 

 

2.2.3 함수( 'string', 'string', 함수) => 정상

csql> select fn_concat3('123', '456', fn_concat2('12','34')); => 정상

 

=== <Result of SELECT Command in Line 1> ===

 

  fn_concat3('123', '456', fn_concat2('12', '34'))

======================

  '1234561234'        

 

1 row selected. (0.013001 sec) Committed. (0.000000 sec) 

 

1 command(s) successfully processed.

 
@ 해당 현상은 11.3까지 발생하지 않았지만(11.3에서 정상인) 11.4 릴리즈 이후로 발생 한 것으로 보여집니다. 확인 부탁드립니다.

 

 
 

 

  • ?
    조원제 2026.01.28 14:41
    안녕하세요, CUBRID를 이용해 주셔서 감사합니다.

    말씀해주신 문제를 재현하였으며, 현재 내부적으로 원인 분석 및 검토를 진행 중입니다.
    분석이 완료되면 확인된 내용과 함께 안내드리겠습니다.

    감사합니다.

  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views179393
    read more
  2. max_client 와 관련하여 현재상태를 확인하는 방법

    Date2026.03.14 ByPCH Views31
    Read More
  3. 서버이관시 호환문제

    Date2026.03.11 By밤톨이 Views112
    Read More
  4. -21013 / Cannnot connect to a broker

    Date2026.03.03 By디에스 Views536
    Read More
  5. 큐브리드11.4.4 버전 java_stored_procedure invalid 문제

    Date2026.02.20 By냐냐냠 Views1488
    Read More
  6. JSON type index

    Date2026.01.30 By크캬 Views2287
    Read More
  7. restoredb 이후 오류발생

    Date2026.01.27 ByPCH Views2200
    Read More
  8. cubrid 11.4에서 Stored Function 생성 이후 함수 내부에서 다른 함수 호출시 위치에 따라 "Stored procedure execute error" 오류가 출력 되는 문제

    Date2026.01.27 By두목원슝 Views2084
    Read More
  9. Django + python환경에서 orm 지원 문의

    Date2026.01.22 By스에트치 Views2070
    Read More
  10. odbc / jdbc 환경에서 현재 세션의 isolation level 확인방법

    Date2026.01.21 Byjhlee Views2130
    Read More
  11. 큐브리드 사용자(스키마) 계정에 대한 비밀번호 정책을 추가

    Date2026.01.20 ByPCH Views2046
    Read More
  12. 브로커 이중화 관련 문의드립니다.

    Date2026.01.14 ByPCH Views2117
    Read More
  13. HA 구성에 독립된 DB 추가하는 방법 문의드립니다.

    Date2026.01.08 By깐수 Views2059
    Read More
  14. CUBRID DB 9에서 11버전으로 업그레이드 연계 JDBC 변경 문의

    Date2025.12.23 ByMiniMaster Views2825
    Read More
  15. 큐브리드 설치 시 로그 위치 변경 문의

    Date2025.12.22 By강인함 Views2111
    Read More
  16. unloaddb 후 loaddb 시 오류

    Date2025.12.15 ByPCH Views2405
    Read More
  17. JDBC에서 SEQUENCE OF 타입의 컬럼 값을 조회하는 방법 문의

    Date2025.12.11 By새옹지마 Views2471
    Read More
  18. DB 운영중 LOCK 관련 이슈가 있어 문의 드립니다.

    Date2025.12.11 By용원아빠 Views2404
    Read More
  19. spring boot 3.5.8 + cubrid 11.4 JPA설정 문의

    Date2025.12.10 By뵤라 Views2436
    Read More
  20. slow.log 파일에서 'server execution statistics' 출력 조건이 궁금합니다.

    Date2025.12.02 Byogu Views2512
    Read More
  21. Cubrid 11.4의 컬럼명과 도움말의 컬럼명이 다릅니다.

    Date2025.11.28 By엘L Views2460
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 214 Next
/ 214

Contact Cubrid

영업문의 070-4077-2112 / 기술문의 070-4077-2148 / 대표전화 070-4077-2110 / Email. contact_at_cubrid.com
Contact Sales