1 | /* |
2 | * Legal Notice |
3 | * |
4 | * This document and associated source code (the "Work") is a part of a |
5 | * benchmark specification maintained by the TPC. |
6 | * |
7 | * The TPC reserves all right, title, and interest to the Work as provided |
8 | * under U.S. and international laws, including without limitation all patent |
9 | * and trademark rights therein. |
10 | * |
11 | * No Warranty |
12 | * |
13 | * 1.1 TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE INFORMATION |
14 | * CONTAINED HEREIN IS PROVIDED "AS IS" AND WITH ALL FAULTS, AND THE |
15 | * AUTHORS AND DEVELOPERS OF THE WORK HEREBY DISCLAIM ALL OTHER |
16 | * WARRANTIES AND CONDITIONS, EITHER EXPRESS, IMPLIED OR STATUTORY, |
17 | * INCLUDING, BUT NOT LIMITED TO, ANY (IF ANY) IMPLIED WARRANTIES, |
18 | * DUTIES OR CONDITIONS OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR |
19 | * PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OF |
20 | * WORKMANLIKE EFFORT, OF LACK OF VIRUSES, AND OF LACK OF NEGLIGENCE. |
21 | * ALSO, THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, |
22 | * QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT |
23 | * WITH REGARD TO THE WORK. |
24 | * 1.2 IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THE WORK BE LIABLE TO |
25 | * ANY OTHER PARTY FOR ANY DAMAGES, INCLUDING BUT NOT LIMITED TO THE |
26 | * COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS |
27 | * OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, |
28 | * INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER CONTRACT, TORT, WARRANTY, |
29 | * OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR ANY OTHER AGREEMENT |
30 | * RELATING TO THE WORK, WHETHER OR NOT SUCH AUTHOR OR DEVELOPER HAD |
31 | * ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. |
32 | * |
33 | * Contributors: |
34 | * Gradient Systems |
35 | */ |
36 | tdef s_tdefs[] = { |
37 | {"s_brand" , "s_br" , FL_NOP | FL_SOURCE_DDL, S_BRAND_START, S_BRAND_END, S_BRAND, -1, NULL, 0, 0, 0, 0x0, 0x0, NULL}, |
38 | {"s_customer_address" , "s_ca" , FL_SOURCE_DDL | FL_PASSTHRU, S_CUSTOMER_ADDRESS_START, S_CUSTOMER_ADDRESS_END, |
39 | S_CUSTOMER_ADDRESS, -1, NULL, 0, 0, 0, 0x0, 0x01, NULL}, |
40 | {"s_call_center" , "s_cc" , FL_SOURCE_DDL, S_CALL_CENTER_START, S_CALL_CENTER_END, S_CALL_CENTER, -1, NULL, 0, 0, 0, |
41 | 0x0, 0x02, NULL}, |
42 | {"s_catalog" , "s_ct" , FL_SOURCE_DDL | FL_NOP, S_CATALOG_START, S_CATALOG_END, S_CATALOG, -1, NULL, 0, 0, 0, 0x0, |
43 | 0x0, NULL}, |
44 | {"s_catalog_order" , "s_cord" , FL_SOURCE_DDL | FL_PARENT | FL_DATE_BASED, S_CATALOG_ORDER_START, S_CATALOG_ORDER_END, |
45 | S_CATALOG_ORDER, S_CATALOG_ORDER_LINEITEM, NULL, 0, 0, 0, 0x0, 0x01, NULL}, |
46 | {"s_catalog_order_lineitem" , "s_cl" , FL_SOURCE_DDL | FL_CHILD | FL_PARENT, S_CATALOG_ORDER_LINEITEM_START, |
47 | S_CATALOG_ORDER_LINEITEM_END, S_CATALOG_ORDER_LINEITEM, S_CATALOG_RETURNS, NULL, 0, 0, 0, 0x0, 0x07, NULL}, |
48 | {"s_catalog_page" , "s_cp" , FL_SOURCE_DDL | FL_PASSTHRU, S_CATALOG_PAGE_START, S_CATALOG_PAGE_END, S_CATALOG_PAGE, |
49 | -1, NULL, 0, 0, 0, 0x0, 0x033, NULL}, |
50 | {"s_catalog_promotional_item" , "s_ci" , FL_NOP | FL_SOURCE_DDL, S_CATALOG_PROMOTIONAL_ITEM_START, |
51 | S_CATALOG_PROMOTIONAL_ITEM_END, S_CATALOG_PROMOTIONAL_ITEM, -1, NULL, 0, 0, 0, 0x0, 0x0, NULL}, |
52 | {"s_catalog_returns" , "s_cr" , FL_SOURCE_DDL | FL_CHILD, S_CATALOG_RETURNS_START, S_CATALOG_RETURNS_END, |
53 | S_CATALOG_RETURNS, -1, NULL, 0, 0, 0, 0x0, 0x0E, NULL}, |
54 | {"s_category" , "s_cg" , FL_NOP | FL_SOURCE_DDL, S_CATEGORY_START, S_CATEGORY_END, S_CATEGORY, -1, NULL, 0, 0, 0, 0x0, |
55 | 0x0, NULL}, |
56 | {"s_class" , "s_cl" , FL_NOP | FL_SOURCE_DDL, S_CLASS_START, S_CLASS_END, S_CLASS, -1, NULL, 0, 0, 0, 0x0, 0x0, NULL}, |
57 | {"s_company" , "s_co" , FL_NOP | FL_SOURCE_DDL, S_COMPANY_START, S_COMPANY_END, S_COMPANY, -1, NULL, 0, 0, 0, 0x0, |
58 | 0x0, NULL}, |
59 | {"s_customer" , "s_cu" , FL_SOURCE_DDL, S_CUSTOMER_START, S_CUSTOMER_END, S_CUSTOMER, -1, NULL, 0, 0, 0, 0x0, 0x01, |
60 | NULL}, |
61 | {"s_division" , "s_di" , FL_NOP | FL_SOURCE_DDL, S_DIVISION_START, S_DIVISION_END, S_DIVISION, -1, NULL, 0, 0, 0, 0x0, |
62 | 0x0, NULL}, |
63 | {"s_inventory" , "s_in" , FL_SOURCE_DDL | FL_DATE_BASED, S_INVENTORY_START, S_INVENTORY_END, S_INVENTORY, -1, NULL, 0, |
64 | 0, 0, 0x0, 0x07, NULL}, |
65 | {"s_item" , "s_it" , FL_SOURCE_DDL, S_ITEM_START, S_ITEM_END, S_ITEM, -1, NULL, 0, 0, 0, 0x0, 0x01, NULL}, |
66 | {"s_manager" , "s_mg" , FL_NOP | FL_SOURCE_DDL, S_MANAGER_START, S_MANAGER_END, S_MANAGER, -1, NULL, 0, 0, 0, 0x0, |
67 | 0x0, NULL}, |
68 | {"s_manufacturer" , "s_mn" , FL_NOP | FL_SOURCE_DDL, S_MANUFACTURER_START, S_MANUFACTURER_END, S_MANUFACTURER, -1, |
69 | NULL, 0, 0, 0, 0x0, 0x0, NULL}, |
70 | {"s_market" , "s_mk" , FL_NOP | FL_SOURCE_DDL, S_MARKET_START, S_MARKET_END, S_MARKET, -1, NULL, 0, 0, 0, 0x0, 0x0, |
71 | NULL}, |
72 | {"s_product" , "s_pr" , FL_NOP | FL_SOURCE_DDL, S_PRODUCT_START, S_PRODUCT_END, S_PRODUCT, -1, NULL, 0, 0, 0, 0x0, |
73 | 0x0, NULL}, |
74 | {"s_promotion" , "s_pm" , FL_SOURCE_DDL | FL_PASSTHRU, S_PROMOTION_START, S_PROMOTION_END, S_PROMOTION, -1, NULL, 0, |
75 | 0, 0, 0x0, 0x01, NULL}, |
76 | {"s_purchase" , "s_pu" , FL_SOURCE_DDL | FL_PARENT | FL_DATE_BASED, S_PURCHASE_START, S_PURCHASE_END, S_PURCHASE, |
77 | S_PURCHASE_LINEITEM, NULL, 0, 0, 0, 0x0, 0x01, NULL}, |
78 | {"s_purchase_lineitem" , "s_pl" , FL_SOURCE_DDL | FL_CHILD | FL_PARENT, S_PURCHASE_LINEITEM_START, |
79 | S_PURCHASE_LINEITEM_END, S_PURCHASE_LINEITEM, S_STORE_RETURNS, NULL, 0, 0, 0, 0x0, 0x07, NULL}, |
80 | {"s_reason" , "s_re" , FL_NOP | FL_SOURCE_DDL, S_REASON_START, S_REASON_END, S_REASON, -1, NULL, 0, 0, 0, 0x0, 0x0, |
81 | NULL}, |
82 | {"s_store" , "s_st" , FL_SOURCE_DDL, S_STORE_START, S_STORE_END, S_STORE, -1, NULL, 0, 0, 0, 0x0, 0x01, NULL}, |
83 | {"s_store_promotional_item" , "s_sp" , FL_NOP | FL_SOURCE_DDL, S_STORE_PROMOTIONAL_ITEM_START, |
84 | S_STORE_PROMOTIONAL_ITEM_END, S_STORE_PROMOTIONAL_ITEM, -1, NULL, 0, 0, 0, 0x0, 0x0, NULL}, |
85 | {"s_store_returns" , "s_sr" , FL_SOURCE_DDL | FL_CHILD, S_STORE_RETURNS_START, S_STORE_RETURNS_END, S_STORE_RETURNS, |
86 | -1, NULL, 0, 0, 0, 0x0, 0x0E, NULL}, |
87 | {"s_subcategory" , "s_ct" , FL_NOP | FL_SOURCE_DDL, S_SUBCATEGORY_START, S_SUBCATEGORY_END, S_SUBCATEGORY, -1, NULL, |
88 | 0, 0, 0, 0x0, 0x0, NULL}, |
89 | {"s_subclass" , "s_sc" , FL_NOP | FL_SOURCE_DDL, S_SUBCLASS_START, S_SUBCLASS_END, S_SUBCLASS, -1, NULL, 0, 0, 0, 0x0, |
90 | 0x0, NULL}, |
91 | {"s_warehouse" , "s_wh" , FL_SOURCE_DDL, S_WAREHOUSE_START, S_WAREHOUSE_END, S_WAREHOUSE, -1, NULL, 0, 0, 0, 0x0, |
92 | 0x01, NULL}, |
93 | {"s_web_order" , "s_wo" , FL_SOURCE_DDL | FL_PARENT | FL_DATE_BASED, S_WEB_ORDER_START, S_WEB_ORDER_END, S_WEB_ORDER, |
94 | S_WEB_ORDER_LINEITEM, NULL, 0, 0, 0, 0x0, 0x01, NULL}, |
95 | {"s_web_order_lineitem" , "s_wl" , FL_SOURCE_DDL | FL_CHILD | FL_PARENT, S_WEB_ORDER_LINEITEM_START, |
96 | S_WEB_ORDER_LINEITEM_END, S_WEB_ORDER_LINEITEM, S_WEB_RETURNS, NULL, 0, 0, 0, 0x0, 0x07, NULL}, |
97 | {"s_web_page" , "s_wp" , FL_SOURCE_DDL | FL_PASSTHRU, S_WEB_PAGE_START, S_WEB_PAGE_END, S_WEB_PAGE, -1, NULL, 0, 0, 0, |
98 | 0x0, 0x01, NULL}, |
99 | {"s_web_promotional_item" , "s_wi" , FL_NOP | FL_SOURCE_DDL, S_WEB_PROMOTIONAL_ITEM_START, S_WEB_PROMOTIONAL_ITEM_END, |
100 | S_WEB_PROMOTIONAL_ITEM, -1, NULL, 0, 0, 0, 0x0, 0x0, NULL}, |
101 | {"s_web_returns" , "s_wr" , FL_SOURCE_DDL | FL_CHILD, S_WEB_RETURNS_START, S_WEB_RETURNS_END, S_WEB_RETURNS, -1, NULL, |
102 | 0, 0, 0, 0x0, 0x0E, NULL}, |
103 | {"s_web_site" , "s_ws" , FL_SOURCE_DDL, S_WEB_SITE_START, S_WEB_SITE_END, S_WEB_SITE, -1, NULL, 0, 0, 0, 0x0, 0x01, |
104 | NULL}, |
105 | {"s_zip_to_gmt" , "s_zi" , FL_SOURCE_DDL | FL_VPRINT, S_ZIPG_START, S_ZIPG_END, S_ZIPG, -1, NULL, 0, 0, 0, 0x0, 0x03, |
106 | NULL}, |
107 | {NULL}}; |
108 | |