GithubHelp home page GithubHelp logo

wjjeong / sqlcv Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 233 KB

SQL 컨버젼 프로그램. 표준화 변경으로 컬럼과 테이블이 변경되는 경우 이를 Mapping해서 변환해주는 도구. 이기종 DB간 간단한 함수, 문법변환 가능

Python 100.00%

sqlcv's People

Contributors

kalipso avatar ksm40177 avatar wjjeong avatar

Stargazers

 avatar

sqlcv's Issues

SQL Conversion 에러 확인 요청

2017-08-08 16 56 30

SQL 컨버전 함수 연결 및 ProgressBar 연결했습니다.
다만 제 PC에서는 컨버전 실행 시 첨부한 이미지와 같이 에러가 발생하고 있습니다. (난 데이터구조 변경 안했음)

  1. 정선임 PC에서 에러가 발생하지 않는지 확인 해주세요.
  2. 데이터 구조 변경 시 데이터가 없기 때문에 테스트하기가 어렵습니다. 데이터 구조 변경에 따른 데이터도 같이 주세요.
  3. 2번이 힘들다면,. 같이 공유할 수 있는 PostgreSQL 서버가 있으면 더더 좋겠네요^^

더운 날씨에 몸들 건강하시고~

SQL Converion 함수 연결

대부분의 기능은 완료되었습니다.
SQLConversion.py에 doSqlConversion 함수에서 file_nm, sql_id를 넘겨서 Conversion을 실행하면 되는데, 정원준 선임이 작성한 함수 파일 및 호출 방법 알려주세요.

B2EN_SC_SQL_TEXT_RST 입력 시 line 오류

SQL 컨버전 후 아래 각 테이블을 쿼리해보면

  • B2EN_SC_SQL_TEXT는 1~6이 입력됨
  • B2EN_SC_SQL_TEXT_RST 는 2~6이 입력됨

아래 테이블별 결과

[B2EN_SC_SQL_TEXT]
1 select
2 *
3 from
4 cm_gvof_hs
5 where
6 gvof_cd = 'P014231'

[B2EN_SC_SQL_TEXT_RST]
2 select *
3 from
4 CM_GVOF_CHG_HS
5 where
6 GVOF_CD = 'P014231'

SQL 컨버전이 잘 안되는 것 같음..

오랜만에 정선임이 올린 DB를 다운받아서 테스트를 하고 있는데.. 오류인 것 같아서 이슈로 올립니다.

1. "SQL정보 > SQL변환" 메뉴에서 아래 SQL파일 업로드
SQLUploadSample.zip

2. 아래 2개 SQL을 컨버전 하였음

  • samplesql1.xml > selGvofMs
  • samplesql2.xml selGvofChgHs

3. 아래와 같은 문제가 확인되었음.

  1. B2EN_SC_SQL_LIST의 wk_stat_cd가 R --> C로 변경되어야 하나 변경되지 않음
    (AP에서 완료되면 변경해줘야 하는지 확인 바람)
  2. B2EN_SC_SQL_TEXT_RST에는 아래와 같은 엉뚱한 쿼리가 입력됨
    SELECT
    -- ZhnSql.xml : getJuminInfo
    'A' AS FLG
    , KOR_FULNM
    , /* SC - ZHMA_JUMIN_NO : No Mapping Info*/
    FROM RS_RSDT_MS /* SC 테이블 중복확인 : RS_RSDT_MS,RS_PSNL_DSC_MS,RS_RSDT_HS,RS_PSNL_DSC_HS */ TZM
    WHERE TZM.DAT_MTCH_CL_CD IN('0', '1', '3', '4')
    union all
  3. 매핑정보를 입력하려고 했으나 제대로 입력되지 않음(엑셀을 만들어서 넣었으나 응답이 없음)

위 에러들에 대해서 확인하고, 어떤 문제인지 알려주세요. 필요하면 SQLConversion.py도 수정하겠음.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.