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

Cannot run this SQL with 3.0.4 and with 2.5.8 is fine. [CORE6077] #6327

Closed
firebird-automations opened this issue Jun 7, 2019 · 3 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Mauricio Martinez O (mauriciomtzo)

This sql code can be run with 2.5.8 and cannot be run with 3.0.4, I could not find any changes to this

SELECT A.importe_cargo , F.clave_prov, F.nombre_proveedor, F.nombre_tipo
FROM orsp_lista_proveedores('S') F, cargos_prov(F.proveedor_id, :F_Fecha_Corte, :F_Fecha_Corte, 'N') A
LEFT JOIN DOCTOS_CP B
ON A.DOCTO_CP_ID = B.DOCTO_CP_ID

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

security: Developers [ 10012 ] =>

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Define "can not be run", please.

@firebird-automations
Copy link
Collaborator Author

Commented by: Arioch (arioch)

This query is just a trove of bad practices....
1) mixing implicit SQL-89 and explicit SQL-92 joins
2) implicitly joining two stored procedures ( should it even work??? ) - Select f(x), g(f(x),y) ....
3) outer-joining of SP (actually, cross-join of two SPs) and a table(or view), where table is subordinate, not primary source.

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

No branches or pull requests

2 participants