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

Altrar TRecord ou TTransaction #208

Open
bjverde opened this issue Jul 13, 2021 · 0 comments
Open

Altrar TRecord ou TTransaction #208

bjverde opened this issue Jul 13, 2021 · 0 comments
Labels
Backend php Pull requests that update Php code

Comments

@bjverde
Copy link
Owner

bjverde commented Jul 13, 2021

O FormDin 4 usa em todos select CASE_UPPER. Porém no Adianti usa POO com CASE_NATURAL, aqui é o dilema do melhor local para alterar se é TRecord ou TTransaction.

Problemas relacionados

No momento foi feita alteração. IMPORTANTE alterar o adianti 7.3 arquivo lib/adianti/database/TRecord.php -> load na linha 836

De:

            if (isset($dbinfo['prep']) AND $dbinfo['prep'] == '1') // prepared ON
            {
                $result = $conn-> prepare ( $sql->getInstruction( TRUE ) , array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
                $result-> execute ( $criteria->getPreparedVars() );
            }

Para

            if (isset($dbinfo['prep']) AND $dbinfo['prep'] == '1') // prepared ON
            {
                $result = $conn-> prepare ( $sql->getInstruction( TRUE ) , array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
                $conn->setAttribute(PDO::ATTR_CASE, PDO::CASE_UPPER);
                $result-> execute ( $criteria->getPreparedVars() );
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend php Pull requests that update Php code
Projects
None yet
Development

No branches or pull requests

1 participant