Skip to content
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

Policy #10

Closed
bpbastos opened this issue Apr 24, 2018 · 12 comments
Closed

Policy #10

bpbastos opened this issue Apr 24, 2018 · 12 comments

Comments

@bpbastos
Copy link
Collaborator

Olá @edgardmessias, estamos tentando rodar testes de aceitação usando seu driver para DB2 porém aparece a seguinte mensagem de erro:

[yii\db\Exception] SQLSTATE[42704]: Undefined object: -204 [IBM][CLI Driver][DB2/LINUXX8664] SQL0204N "DB2INST1.POLICY" is an undefined name. SQLSTATE=42704
(SQLExecute[-204] at /PDO_IBM-1.3.4/ibm_statement.c:1136)
The SQL being executed was: SET INTEGRITY FOR "POLICY" ALL, "HMON_ATM_INFO" ALL, "HMON_COLLECTION" ALL, "academico_endereco" ALL, "academico_feriado" ALL IMMEDIATE UNCHECKED;

Tem alguma dica?

@edgardmessias
Copy link
Owner

O que acontece se você executar esse SQL:

SET INTEGRITY FOR "POLICY" ALL, "HMON_ATM_INFO" ALL, "HMON_COLLECTION" ALL, "academico_endereco" ALL, "academico_feriado" ALL IMMEDIATE UNCHECKED;

Existem essas tabelas: POLICY, HMON_ATM_INFO, HMON_COLLECTION, academico_endereco, academico_feriado?

@bpbastos
Copy link
Collaborator Author

Executei e deu o mesmo erro: "DB2INST1.POLICY" is an undefined name.

POLICY, HMON_ATM_INFO, HMON_COLLECTION não existem apenas as tabelas academico*

@edgardmessias
Copy link
Owner

Executa e coloque aqui o resultado:

SELECT t.tabname FROM syscat.tables AS t WHERE t.type in ('T') AND t.ownertype != 'S'

@bpbastos
Copy link
Collaborator Author

bpbastos commented Apr 24, 2018

OBS.: No primeiro erro eu omiti algumas tabelas.

Segue o resultado da consulta.
academico_endereco
academico_feriado
POLICY
HMON_ATM_INFO
HMON_COLLECTION

@edgardmessias
Copy link
Owner

Executa de novo, mas pegando todas colunas agora:

SELECT * FROM syscat.tables AS t WHERE t.type in ('T') AND t.ownertype != 'S'

e tenta ver o que mais difere essas ultimas tabelas das outras.

@bpbastos
Copy link
Collaborator Author

Joguei no goodle drive para melhorar a visualização: https://docs.google.com/spreadsheets/d/1FudxvzTF4OGR1y-Dr9T8tt_VCSQPKIKFz5cquNYPnl0/edit#gid=0

Diferença que achei foi na primeira coluna "TABLESCHEMA" que muda de "DB2INST1" para "SYSTOOLS" no caso das tabelas HMON_ATM_INFO, HMON_COLLECTION, POLICY

@edgardmessias
Copy link
Owner

Veja se o commit que acabei de fazer resolve seu problema

@bpbastos
Copy link
Collaborator Author

Funcionou @edgardmessias, obrigado!

@edgardmessias
Copy link
Owner

Assim que der, vou gerar um novo release

@bpbastos bpbastos reopened this Apr 26, 2018
@edgardmessias
Copy link
Owner

Gerei novo release.

Lembrando que não é totalmente compatível com as últimas versões do Yii2

@edgardmessias
Copy link
Owner

@bpbastos, me adiciona no skype se quiser conversar, meu nome vai estar igual ao github

@bpbastos
Copy link
Collaborator Author

Obrigado @edgardmessias! Sabe informar qual é a ultima versão do yii compativel com seu driver?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants