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 Views19
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4452
    read more
  3. 데이터 등록에러 Sector/page table of file VFID

    Date2011.07.29 By스카이 Views8172
    Read More
  4. Attempt to call a method related to scrollability of non-scrollable ResultSet. 오류 문의

    Date2011.07.28 Bycuins Views12568
    Read More
  5. 서비스 관련

    Date2011.07.28 By브리즈 Views7516
    Read More
  6. [java] 두개의 PreparedStatement 할당후 close 시 문제

    Date2011.07.27 Bycuins Views10827
    Read More
  7. PHP + Apache + Cubrid 연동 질문 입니다.

    Date2011.07.27 By지누 Views11347
    Read More
  8. Oracle 사용자 팁 문의

    Date2011.07.26 By비형여자 Views9689
    Read More
  9. exception 문의

    Date2011.07.22 By비형여자 Views7839
    Read More
  10. CUBRID DB 호스팅 시 UTF-8 타입 사용.

    Date2011.07.19 Byezzone Views7656
    Read More
  11. 데이타베이스 또는 테이블스페이스 생성 시 자동증가 옵션이 어떻게 되는지??

    Date2011.07.19 By풀소리 Views9849
    Read More
  12. HA 복제시 매니저에서의 테이블 생성

    Date2011.07.15 By유니콘 Views18502
    Read More
  13. [급]Cubrid메니저에서 Unlod 후 load시 오류

    Date2011.07.15 By별솔아범 Views23906
    Read More
  14. HA관련 CUBRID Manager 에서 대시보드 문의드립니다...

    Date2011.07.13 By반짝이 Views25736
    Read More
  15. JSP에서 데이터베이스 연결 어떻게 해요?

    Date2011.07.12 ByJH Views12167
    Read More
  16. migration tool을 이용해 마이그레이션 작업 중 테이블의 데이터 적재 실패 문제

    Date2011.07.11 By엔하늘 Views10172
    Read More
  17. PDO가 지원되고 있는 건가요?

    Date2011.07.09 Bykkh Views10663
    Read More
  18. garbage_collection=yes 설정시 CM(테이블편집-SQL문 탭) 문제입니다...

    Date2011.07.09 By반짝이 Views8646
    Read More
  19. 3.1에서 4.0 업그레이드 후

    Date2011.07.08 By유겸아빠 Views8037
    Read More
  20. 4.0 HA ha_db_list 설정 관련 질문드립니다.

    Date2011.07.08 By반짝이 Views24401
    Read More
  21. php driver interface...x64

    Date2011.07.08 Byplatanus Views7661
    Read More
  22. 참조를 이용해서 찾을때 인덱스를 태울려면 어떻게 하나요?

    Date2011.07.08 By안지민 Views7538
    Read More
Board Pagination Prev 1 ... 143 144 145 146 147 148 149 150 151 152 ... 200 Next
/ 200

Contact Cubrid

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