Repository navigation
fix(sybase): parâmetro NULL não vira o texto 'null' no WHERE remoto (KOROK-261) - #5
Merged
Merged
Conversation
…KOROK-261) - scan.rs: o Param ganha a marca eval_null, gravada pelo isnull da avaliação (PARAM_EXEC e PARAM_EXTERN). Antes, com o valor NULL o value_from_datum devolvia None e o qual ficava com o placeholder de texto 'null': numa coluna numérica, SQL Anywhere Error -157 (subconsulta gemunicipio.codigo_municipio = geempre.codigo_municipio com o município nulo, 05/11 23:07; também count com $1 NULL no plano genérico). - sybase_fdw.rs: qual com parâmetro NULL vira `1 = 0`. Toda comparação empurrada é estrita, então NULL não casa nada, também no agregado (COUNT dá 0) e no `<> ALL(NULL)`, que antes ia `1 = 1`. - fixture 157: chave externa NULL na primeira linha e 51800 → NULL → 51800 em subconsulta escalar, LATERAL + LIMIT e NestLoop parametrizado; $n NULL no plano genérico. Falha no 14b3b48 com o -157; suíte 54/54 no o1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parâmetro avaliado NULL (chave da linha externa ou
$n) deixava o placeholder de texto'null'no WHERE enviado ao Sybase: SQL Anywhere Error -157 em coluna numérica (KOROK-258/261, 05/11).Param.eval_null, gravado pelo isnull da avaliação (PARAM_EXEC e PARAM_EXTERN).deparse_qual_to_sybase: qual com parâmetro NULL vira1 = 0(comparações empurradas são estritas), inclusive no agregado.🤖 Generated with Claude Code