cubrid icon indicating copy to clipboard operation
cubrid copied to clipboard

[CBRD-25219] store precisions and scales of stored procedures' return type and argument types in separate columns

Open hyunikn opened this issue 7 months ago • 0 comments

http://jira.cubrid.org/browse/CBRD-25219

  • SP의 리턴 타입과 SP 인자 타입에 필요한 경우 precision, scale 정보를 저장하기 위한 변경

    • 타입이 numeric 일 때, precision과 scale 저장
    • 타입이 char 또는 varchar 일 때 precision (문자열길이) 저장
    • 나머지 경우에는 변화 없음
  • 구현

    • 시스템 테이블 _db_stored_procedure.return_type 과 _db_stored_procedure_args.data_type 에 각각 2 개의 INTEGER 컬럼 prec 와 scale 추가
      • 이 컬럼에 값을 읽고 쓰는 코드를 타입 변경에 맞게 수정
    • 시맨틱 체크 과정 중 table.column%TYPE 모양의 타입 지정 검사 루틴에 precision과 scale 저장 과정 추가

hyunikn avatar Jul 01 '24 05:07 hyunikn