refs #6493 refactorizar-procedimientos-vn2008-parte_2 #2235
|
@ -61,7 +61,7 @@ proc: BEGIN
|
|||
CREATE OR REPLACE TEMPORARY TABLE tItemRangeLive
|
||||
(PRIMARY KEY (itemFk))
|
||||
ENGINE = MEMORY
|
||||
SELECT ir.itemFk, TIMESTAMP(ir.dated + INTERVAL it.life DAY, '23:59:59') dated
|
||||
SELECT ir.itemFk, util.dayEnd(ir.dated + INTERVAL it.life DAY) dated
|
||||
jbreso marked this conversation as resolved
Outdated
|
||||
FROM tItemRange ir
|
||||
jbreso marked this conversation as resolved
carlosap
commented
TIMESTAMPADD substituir por INTERVAL TIMESTAMPADD substituir por INTERVAL
|
||||
JOIN item i ON i.id = ir.itemFk
|
||||
JOIN itemType it ON it.id = i.typeFk
|
||||
|
|
|
@ -54,8 +54,8 @@ BEGIN
|
|||
SELECT * FROM tmp.nest;
|
||||
|
||||
SELECT companyGroupFk INTO vConsolidatedGroup
|
||||
jbreso marked this conversation as resolved
Outdated
carlosap
commented
tabulación tabulación
|
||||
FROM company
|
||||
WHERE id = vCompany;
|
||||
FROM company
|
||||
WHERE id = vCompany;
|
||||
|
||||
CREATE OR REPLACE TEMPORARY TABLE tCompanyReceiving
|
||||
SELECT id companyFk
|
||||
jbreso marked this conversation as resolved
Outdated
carlosap
commented
companyFk companyFk
|
||||
|
|
Loading…
Reference in New Issue
No utilizar hacer uso de TIMESTAMP(ir.dated + INTERVAL it.life DAY, '23:59:59') , tenemos una función que hace eso util.dayEnd