Background Image

FORUM

조회 수 10628 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
센트 OS 에서 CCI API 이용해서 프로그램중입니다.
#pragma pack(push,1)  (소스  최상단에 적어줌)
cout << "Result column informationn========================================n" << endl;
  for (i=1; i<=col_count; i++)
  {
    printf("name:%s  type:%d,attrname:%s, classname:%s(precision:%d scale:%d)n",
     CCI_GET_RESULT_INFO_NAME(res_col_info, i),
     CCI_GET_RESULT_INFO_TYPE(res_col_info, i),
     CCI_GET_RESULT_INFO_ATTR_NAME(res_col_info, i),
     CCI_GET_RESULT_INFO_CLASS_NAME(res_col_info, i),
     CCI_GET_RESULT_INFO_PRECISION(res_col_info, i),
     CCI_GET_RESULT_INFO_SCALE(res_col_info, i));
  }
  printf("========================================n");
 
위의 구문을 실행하면
"세그멘테이션 오류" 사 발생합니다.
위의 printf 문에서 발생하면  
CCI_GET_RESULT_INFO_NAME, 
CCI_GET_RESULT_INFO_ATTR_NAME,
CCI_GET_RESULT_INFO_CLASS_NAME
같이 스트링을 리턴하는 부분에서 오류 발생합니다.

cci_get_data 함수를 CCI_A_TYPE_STR 타입으로 호출하는 경우 값이 비 정상적으로 리턴합니다.

해결책을 알려주세요.
  • ?
    David Kang 2009.08.25 18:58
    #pragma pack(push,1)
    #include <cas_cci.h>
    #pragma pack(pop)

    위의 구문을 실행하면
    "세그멘테이션 오류" 가 발생합니다.


  • ?
    Prototype 2009.08.26 01:47
    cas_cci.h 의 데이터 얼라인먼트를 조절 해야 하는 특별한 이유가 있나요?
    cas_cci.h 속의 struct 들의 데이터 얼라이먼트의 변동이 있어서 소켓 데이터 전송시 데이터가 깨져서 발생하는 문제입니다.

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

    Date2024.04.23 Byadmin Views48
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4458
    read more
  3. ADO.NET에서 자바 저장함수 호출

    Date2014.11.01 Bykdknim21 Views8420
    Read More
  4. ADO.Net 사용중입니다. 상태확인 방법을 알고 싶습니다.

    Date2015.10.22 ByCUCUCUCU Views5691
    Read More
  5. ADO.net Driver 변경 시 cascci.dll 로드할 수 없다는 오류

    Date2017.07.25 By물병 Views503
    Read More
  6. ADO.net 또는 ODBC에 대한 질문입니다.

    Date2012.03.20 By세스카 Views13377
    Read More
  7. ADO이용시 OLEDB Driver에러

    Date2010.01.29 Byflypig Views15619
    Read More
  8. AIX에 CUBRID 설치 후 오류사항 문의

    Date2015.06.02 By최명호 Views7735
    Read More
  9. ALTER 로 PK 여러 개 지정하고싶습니다

    Date2021.07.21 By사탕구름 Views832
    Read More
  10. ARRAY 데이터 타입에 대한 SQL 질문

    Date2010.10.08 By지용 Views10246
    Read More
  11. AUTO INCREASE 가 편집이 안됨

    Date2022.02.08 By큐브리드어려워요 Views268
    Read More
  12. AUTO_INCREMENT 수동 증가 문의

    Date2021.08.19 Bycubrid초보 Views727
    Read More
  13. AUTO_INCREMENT 컬럼 이용시

    Date2009.12.22 Byhyperhand Views17649
    Read More
  14. AVG 함수관련 질문드려요

    Date2013.06.10 By구름마음 Views13678
    Read More
  15. Ado.NET : Cannot connect to CUBRID CAS 오류

    Date2017.05.05 Bywebsiter Views57860
    Read More
  16. Ado.net. ExecuteNonQuery의 반환값이 항상 0 입니다.

    Date2019.01.08 By모비23 Views1480
    Read More
  17. An IOException was caught during reading the inputstream

    Date2015.11.26 By익명2 Views6872
    Read More
  18. An IOException was caught during reading the inputstream

    Date2015.11.26 By익명2 Views6831
    Read More
  19. An IOException was caught during reading the inputstream. 오류 조치방법 좀 알려주세요.

    Date2019.10.29 Byldev27 Views314
    Read More
  20. An internal error occurred during: "Fetching children of <DB명>". java.lang.NullPointerException 에러

    Date2021.04.06 Byysh Views481
    Read More
  21. Apm_setup7로 자동설치시 연동이 안되는데...

    Date2010.11.08 By또랑 Views8277
    Read More
  22. Archive Log만으로 타임복구가 가능한가요?

    Date2016.04.29 By핑핑크 Views9820
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 200 Next
/ 200

Contact Cubrid

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