Skip to content

bug - PyMySQLReplicationTestCase.isMariaDB() 정상 동작하지 않음 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chungeun-choi opened this issue Jul 23, 2023 · 1 comment
Assignees
Labels
0조 최강 0조 bug Something isn't working

Comments

@chungeun-choi
Copy link

chungeun-choi commented Jul 23, 2023

bug - PyMySQLReplicationTestCase.isMariaDB() 정상 동작하지 않음


  • 함수 설명
    해당 함수를 통해서 test 때 연결되어진 DBMS가 mysql 인지 mariaDB 인지 구별할 수 있습니다
    ...
    def isMariaDB(self):
        if self.__is_mariaDB is None:
            self.__is_mariaDB = "MariaDB" in self.execute("SELECT VERSION()").fetchone()
        return self.__is_mariaDB
    ...
  • 문제
    fechone() 함수를 통해 실행시킨 결과 값은 tuple 형태로 전달 받고 있지만 현재 "MariaDB" in self.execute("SELECT VERSION()").fetchone() 구문은 string 타입의 데이터를 확인하고 있음에 따라 isMariaDB 함수는 항상 False를 반환하는 에러가 존재합니다
    image
@chungeun-choi chungeun-choi added bug Something isn't working 0조 최강 0조 labels Jul 23, 2023
@chungeun-choi chungeun-choi self-assigned this Jul 23, 2023
@dongwook-chan
Copy link

원본 repo에서의 PR이 머지되어 이슈를 종료합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0조 최강 0조 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants