-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
0e708b3
commit 346eda2
Showing
43 changed files
with
140 additions
and
132 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
with | ||
personemailaddress0 as ( | ||
(select personemailaddress0 from "person"."emailaddress" personemailaddress0 where ((personemailaddress0).businessentityid, (personemailaddress0).emailaddressid) in (select unnest(?::int4[]), unnest(?::int4[]))) | ||
(select personemailaddress0 from "person"."emailaddress" personemailaddress0 where ((personemailaddress0).businessentityid , (personemailaddress0).emailaddressid ) in (select unnest(?::int4[]), unnest(?::int4[]))) | ||
) | ||
select (personemailaddress0)."businessentityid",(personemailaddress0)."emailaddressid",(personemailaddress0)."emailaddress",(personemailaddress0)."rowguid",(personemailaddress0)."modifieddate"::text from personemailaddress0 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
delete from "production"."product" where coalesce((productid = ?::INTEGER), ?::BOOLEAN) | ||
delete from "production"."product" where coalesce((productid = ?::INTEGER), ?::BOOLEAN) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
with | ||
productionproduct0 as ( | ||
(select productionproduct0 from "production"."product" productionproduct0 where (((NOT ((productionproduct0).name LIKE ?::VARCHAR) AND NOT (((productionproduct0).name || (productionproduct0).color) LIKE ?::VARCHAR)) AND ((productionproduct0).daystomanufacture > ?::INTEGER)) AND ((productionproduct0).modifieddate < ?::timestamp))) | ||
(select productionproduct0 from "production"."product" productionproduct0 where (((NOT ((productionproduct0).name LIKE ?::VARCHAR) AND NOT (((productionproduct0).name || (productionproduct0).color ) LIKE ?::VARCHAR)) AND ((productionproduct0).daystomanufacture > ?::INTEGER)) AND ((productionproduct0).modifieddate < ?::timestamp))) | ||
), | ||
productionproductmodel0 as ( | ||
(select productionproductmodel0 from "production"."productmodel" productionproductmodel0 where ((productionproductmodel0).modifieddate < ?::timestamp)) | ||
(select productionproductmodel0 from "production"."productmodel" productionproductmodel0 where ((productionproductmodel0).modifieddate < ?::timestamp)) | ||
), | ||
join_cte0 as ( | ||
select productionproduct0, productionproductmodel0 | ||
from productionproduct0 | ||
join productionproductmodel0 | ||
on ((productionproduct0).productmodelid = (productionproductmodel0).productmodelid) | ||
where NOT (productionproductmodel0).instructions IS NULL | ||
on ((productionproduct0).productmodelid = (productionproductmodel0).productmodelid ) | ||
where NOT (productionproductmodel0).instructions IS NULL | ||
) | ||
select (productionproduct0)."productid",(productionproduct0)."name",(productionproduct0)."productnumber",(productionproduct0)."makeflag",(productionproduct0)."finishedgoodsflag",(productionproduct0)."color",(productionproduct0)."safetystocklevel",(productionproduct0)."reorderpoint",(productionproduct0)."standardcost",(productionproduct0)."listprice",(productionproduct0)."size",(productionproduct0)."sizeunitmeasurecode",(productionproduct0)."weightunitmeasurecode",(productionproduct0)."weight",(productionproduct0)."daystomanufacture",(productionproduct0)."productline",(productionproduct0)."class",(productionproduct0)."style",(productionproduct0)."productsubcategoryid",(productionproduct0)."productmodelid",(productionproduct0)."sellstartdate"::text,(productionproduct0)."sellenddate"::text,(productionproduct0)."discontinueddate"::text,(productionproduct0)."rowguid",(productionproduct0)."modifieddate"::text,(productionproductmodel0)."productmodelid",(productionproductmodel0)."name",(productionproductmodel0)."catalogdescription",(productionproductmodel0)."instructions",(productionproductmodel0)."rowguid",(productionproductmodel0)."modifieddate"::text from join_cte0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
with | ||
productionproduct0 as ( | ||
(select productionproduct0 from "production"."product" productionproduct0 where (((((productionproduct0).productid = ANY(?) AND (length((productionproduct0).name) > ?::INTEGER)) AND NOT (((productionproduct0).name || (productionproduct0).color) LIKE ?::VARCHAR)) AND (coalesce((productionproduct0).color, ?::VARCHAR) != ?::VARCHAR)) AND ((productionproduct0).modifieddate < ?::timestamp))) | ||
(select productionproduct0 from "production"."product" productionproduct0 where (((((productionproduct0).productid = ANY(?) AND (length((productionproduct0).name ) > ?::INTEGER)) AND NOT (((productionproduct0).name || (productionproduct0).color ) LIKE ?::VARCHAR)) AND (coalesce((productionproduct0).color , ?::VARCHAR) != ?::VARCHAR)) AND ((productionproduct0).modifieddate < ?::timestamp))) | ||
), | ||
productionproductmodel0 as ( | ||
(select productionproductmodel0 from "production"."productmodel" productionproductmodel0 where (length((productionproductmodel0).name) > ?::INTEGER)) | ||
(select productionproductmodel0 from "production"."productmodel" productionproductmodel0 where (length((productionproductmodel0).name ) > ?::INTEGER)) | ||
), | ||
join_cte0 as ( | ||
select productionproduct0, productionproductmodel0 | ||
from productionproduct0 | ||
join productionproductmodel0 | ||
on ((productionproduct0).productmodelid = (productionproductmodel0).productmodelid) | ||
where ((productionproductmodel0).name != ?::VARCHAR) | ||
on ((productionproduct0).productmodelid = (productionproductmodel0).productmodelid ) | ||
where ((productionproductmodel0).name != ?::VARCHAR) | ||
), | ||
productionproductmodel1 as ( | ||
(select productionproductmodel1 from "production"."productmodel" productionproductmodel1 where (length((productionproductmodel1).name) > ?::INTEGER)) | ||
(select productionproductmodel1 from "production"."productmodel" productionproductmodel1 where (length((productionproductmodel1).name ) > ?::INTEGER)) | ||
), | ||
left_join_cte0 as ( | ||
select productionproduct0, productionproductmodel0, productionproductmodel1 | ||
from join_cte0 | ||
left join productionproductmodel1 | ||
on (((productionproduct0).productmodelid = (productionproductmodel1).productmodelid) AND ?::BOOLEAN) | ||
order by (productionproductmodel1).name ASC , (productionproduct0).color DESC NULLS FIRST | ||
on (((productionproduct0).productmodelid = (productionproductmodel1).productmodelid ) AND ?::BOOLEAN) | ||
order by (productionproductmodel1).name ASC , (productionproduct0).color DESC NULLS FIRST | ||
) | ||
select (productionproduct0)."productid",(productionproduct0)."name",(productionproduct0)."productnumber",(productionproduct0)."makeflag",(productionproduct0)."finishedgoodsflag",(productionproduct0)."color",(productionproduct0)."safetystocklevel",(productionproduct0)."reorderpoint",(productionproduct0)."standardcost",(productionproduct0)."listprice",(productionproduct0)."size",(productionproduct0)."sizeunitmeasurecode",(productionproduct0)."weightunitmeasurecode",(productionproduct0)."weight",(productionproduct0)."daystomanufacture",(productionproduct0)."productline",(productionproduct0)."class",(productionproduct0)."style",(productionproduct0)."productsubcategoryid",(productionproduct0)."productmodelid",(productionproduct0)."sellstartdate"::text,(productionproduct0)."sellenddate"::text,(productionproduct0)."discontinueddate"::text,(productionproduct0)."rowguid",(productionproduct0)."modifieddate"::text,(productionproductmodel0)."productmodelid",(productionproductmodel0)."name",(productionproductmodel0)."catalogdescription",(productionproductmodel0)."instructions",(productionproductmodel0)."rowguid",(productionproductmodel0)."modifieddate"::text,(productionproductmodel1)."productmodelid",(productionproductmodel1)."name",(productionproductmodel1)."catalogdescription",(productionproductmodel1)."instructions",(productionproductmodel1)."rowguid",(productionproductmodel1)."modifieddate"::text from left_join_cte0 |
Oops, something went wrong.