text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
-- This DDL (SQL) script initializes a database for the XBRL Open Model using Postgres -- (c) Copyright 2013-2017 Mark V Systems Limited, California US, All rights reserved. -- Mark V copyright applies to this software, which is licensed according to the terms of Arelle(r). SET statement_timeout = 0; SET client_en...
the_stack
-- 2021-02-11T15:01:58.179Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserA...
the_stack
SET NAMES 'utf8'; /* ##################################### */ /* STRUCTURE */ /* ##################################### */ DROP TABLE IF EXISTS PREFIX_order_customization_return; ALTER TABLE PREFIX_cart ADD id_guest INT UNSIGNED NULL AFTER id_customer; ALTER TABLE PREFIX_tab ADD `module` varchar(64) NULL...
the_stack
CREATE OR REPLACE FUNCTION vocabulary_pack.pConceptAncestor ( is_small BOOLEAN = FALSE ) RETURNS void AS $BODY$ DECLARE iVocabularies VARCHAR(1000) [ ]; crlf VARCHAR (4) := '<br>'; iSmallCA_emails CONSTANT VARCHAR(1000) :=(SELECT var_value FROM devv5.config$ WHERE var_name='concept_ancestor_email'); cRet TEXT...
the_stack
-- 2018-05-04T18:31:32.617 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AD_Client_ID,IsActive,Created,CreatedBy,Updated,IsReport,IsDirectPrint,AccessLevel,ShowHelp,IsBetaFunctionality,IsServerProcess,UpdatedBy,JasperReport,AD_Process_ID,AllowProcessReRun,IsUseBPartnerLanguag...
the_stack
-- 2020-12-15T15:34:00.976Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET JasperReport='@PREFIX@de/metas/docs/manufacturingorder/label_3_segment.jasper',Updated=TO_TIMESTAMP('2020-12-15 17:34:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584768 ; -- 2020-12-15...
the_stack
-- 2017-08-28T15:38:41.218 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 10.1 -- Dumped by pg_dump version 11.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
the_stack
-- 2021-04-01T08:48:12.494Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Reference_ID,FieldLength,Version,IsKey,IsParent,IsTranslated,IsIdentifier,SeqNo,AD_Client_ID,IsActive,Created,CreatedBy,IsUpdateable,DDL_NoForeignKey,IsSelectionColumn,IsSyncDatabase,IsAlwaysUpdateabl...
the_stack
-- 2020-07-08T11:06:32.649Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET AD_Name_ID=572882, Description='Related Purchase Orders', Help=NULL, Name='Bestellungen',Updated=TO_TIMESTAMP('2020-07-08 14:06:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552533 ; -- 2020...
the_stack
DROP FUNCTION IF EXISTS AccountSheetReport(p_dateFrom date, p_dateTo date, p_c_acctschema_id NUMERIC, p_ad_org_id numeric, p_account_id NUMERIC, p_c_activity_id numeric, p_c_project_id numeric) ; DROP FUNCTION IF EXISTS AccountSheetReport(p_dateFrom date, p_dateTo date, p_c_acctschema_id NUMERIC, p_ad_org_id numeric, ...
the_stack
EXEC tSQLt.NewTestClass 'BasicTests'; -- Create a separate class for each of the CISL functionalities EXEC tSQLt.NewTestClass 'Alignment'; EXEC tSQLt.NewTestClass 'Dictionaries'; EXEC tSQLt.NewTestClass 'Memory'; EXEC tSQLt.NewTestClass 'Fragmentation'; EXEC tSQLt.NewTestClass 'RowGroups'; EXEC tSQLt.NewTestClass...
the_stack
-- 4021 Distribution of greater than 0 US$ cost per subject by period_id, by visit_concept_id, by visit_type_concept_id, by cost_concept_id, by cost_type_concept_id during the cohort period {@rollupUtilizationVisit} ? { select c1.cohort_definition_id, c1.subject_id, vo1.visit_occurrence_id, vca.ancestor_concept_i...
the_stack
-- -- explicitly add a field for C_OrderLine.EnforcePriceLimit to the sales and purchase order window -- -- 2018-07-30T17:39:50.063 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,Des...
the_stack
create schema table_stats; set search_path=table_stats; set optimizer_print_missing_stats = off; -- Regular Table Create table stat_heap_t1 (i int,j int, x text,c char,v varchar, d date, n numeric, t timestamp without time zone, tz time with time zone) distributed by (i); Insert into stat_heap_t1 values(generate_serie...
the_stack
create or replace package body oos_util_apex as /** * Returns true/false if APEX developer is enable * Supports both APEX 4 and 5 * * Can be used in APEX to declaratively determine if in development mode. * * @example * begin * if oos_util_apex.is_developer then * dbms_output.put_lin...
the_stack
-- Copyright (c) YugaByte, Inc. alter table alert_definition_group drop constraint ck_adg_threshold_unit; alter table alert_definition_group add constraint ck_adg_threshold_unit check (threshold_unit in ('STATUS','COUNT','PERCENT','MILLISECOND','SECOND','DAY')); CREATE OR REPLACE FUNCTION create_universe_alert_defini...
the_stack
--[BABEL-582]Checking all base datatypes for sql_variant --The following list of base datatypes cannot be stored by using sql_variant: --[datetimeoffset(SQL server 2012), geography, geometry, hierarchyid, image, ntext, nvarchar(max), --rowversion (timestamp), text, varchar(max), varbinary(max), User-defined types, xml]...
the_stack
-- 2017-10-21T14:35:07.546 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-21 14:35:07','YYYY-MM-DD HH24:MI:SS'),Name='Contract Terms',Description='Contract Terms' WHERE AD_Tab_ID=540331 AND AD_Language='en_US' ; -- 2017-10-21T14:35:34...
the_stack
SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `IdentityZoneVO` -- ---------------------------- CREATE TABLE `IdentityZoneVO` ( `uuid` varchar(32) UNIQUE NOT NULL, `zoneId` varchar(32) NOT NULL, `dataCenterUuid` varchar(32) NOT NULL, `type` varchar(32) NOT NULL, `zon...
the_stack
PRINT N'Altering [dbo].[BugNet_Project_CloneProject]...'; GO ALTER PROCEDURE [dbo].[BugNet_Project_CloneProject] ( @ProjectId INT, @ProjectName NVarChar(256), @CloningUserName VARCHAR(75) = NULL ) AS DECLARE @CreatorUserId UNIQUEIDENTIFIER SET NOCOUNT OFF SET @CreatorUserId = (SELECT ProjectCreatorUserId F...
the_stack
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 09/01/2014 11:03:44 -- Generated from EDMX file: C:\Users\Bill\OneDrive\Visual Studio\Projects\Lorn.ADSP\Common\Lorn.ADSP.C...
the_stack
\set ON_ERROR_STOP 1 BEGIN; ----------------------- -- CREATE NEW TABLES -- ----------------------- CREATE TABLE area_type (id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL); -- e.g. 'country', 'province' CREATE TABLE area (id SERIAL PRIMARY KEY, ...
the_stack
-- 2017-08-21T10:15:42.110 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-08-21 10:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543116 ; -- 2017-08-21T10:15:42.119 -- I forgot to set the DI...
the_stack
-- MySQL dump 10.13 Distrib 5.5.31, for debian-linux-gnu (i686) -- -- Host: localhost Database: express-admin-simple -- ------------------------------------------------------ -- Server version 5.5.31-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_...
the_stack
-- Slight modifications and performance optimizations -- by Gianluca Sartori and Chrissy LeMaire DECLARE @TraceID INT = --TRACEID-- DECLARE @SessionName NVARCHAR(128) = '--SESSIONNAME--' DECLARE @PrintOutput BIT = 1 DECLARE @Execute BIT = 0 SET NOCOUNT ON CREATE TABLE [#SQLskills_Trace_XE_Column_Map]( [trace...
the_stack
-- 2019-07-22T06:44:05.321Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET Description='Empties Receive',Updated=TO_TIMESTAMP('2019-07-22 09:44:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540323 ; -- 2019-07-22T06:44:05.336Z -- I forgot to set the DICTIONARY_ID...
the_stack
-- ---------------------------- -- 角色管理 初始化 -- Table structure for permission_role -- ---------------------------- -- DROP TABLE IF EXISTS `permission_role`; -- CREATE TABLE `permission_role` ( -- `id` int(11) NOT NULL AUTO_INCREMENT, -- `description` longtext, -- `creator` varchar(255) DEFAULT NULL, -- `modifi...
the_stack
Sector SS Hex Name UWP Bases Remarks Zone PBG Allegiance Stars {Ix} (Ex) [Cx] Nobility W RU Ghoe A 0101 X231000-0 Ba Lo Ni Po 003 -- K1 V 0 Ghoe A 0104 X565000-0 Ba Lo Ni 000 -- F7 V 0 Ghoe A 0105 X445000-0 Ba Lo Ni 011 -- F6 V D 0 Ghoe A 0106 X500000-0 Ba Lo Ni Va 012 -- M7 V 0 Ghoe A 0...
the_stack
USE [FederationStateStore] GO IF OBJECT_ID ( '[sp_addApplicationHomeSubCluster]', 'P' ) IS NOT NULL DROP PROCEDURE [sp_addApplicationHomeSubCluster]; GO CREATE PROCEDURE [dbo].[sp_addApplicationHomeSubCluster] @applicationId VARCHAR(64), @homeSubCluster VARCHAR(256), @storedHomeSubCluster VARCHAR(256)...
the_stack
-- USE quintuitive; DROP TABLE IF EXISTS instrument; CREATE TABLE IF NOT EXISTS instrument ( id INTEGER NOT NULL PRIMARY KEY, provider VARCHAR(10) NOT NULL, symbol VARCHAR(16) NOT NULL, type VARCHAR(16), bpv DECIMAL(18,8) NOT NULL, tick DECIMAL(18,8) NOT NULL, min_move DECIMAL(18,8) NOT NULL, c...
the_stack
-- IMPORTANT NOTE: fail_job() & _autonomous_fail_job() functions have been dropped and recreated with new arguments. Please check function permissions before and after update. -- fail_job() can now take an optional second argument to set the final alert code level that the job should fail with in the job_log table. All...
the_stack
-- /*************************************************************************** -- (c) Copyright IBM Corp. 2011 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not ...
the_stack
-- 2021-06-04T08:43:42.759Z -- URL zum Konzept UPDATE AD_Element_Trl SET Description='Abschreibung Rechnung', IsTranslated='Y', Name='Abschreibung Rechnung', PrintName='Abschreibung Rechnung',Updated=TO_TIMESTAMP('2021-06-04 11:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542893 AND AD_Language='fr...
the_stack
-- 2017-08-24T16:00:22.548 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-08-24 16:00:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541191 ; -- 2017-08-24T16:00:22.557 -- I forgot to set the DIC...
the_stack
---------- timeline_view.sql ---------- -- SCHEMA: -- timestamp (TIMESTAMP) -- detail (STRING) -- sha256 (STRING) -- device_id (STRING) -- username (STRING) ---------- All Binary rows ---------- SELECT b.timestamp, (CASE b.action WHEN 'FIRST_SEEN' THEN FORMAT('%s binary "%s" was first seen', b.p...
the_stack
-- -- UPDATABLE VIEWS -- -- check that non-updatable views and columns are rejected with useful error -- messages CREATE TABLE base_tbl (a int PRIMARY KEY, b varchar(50) DEFAULT 'Unspecified'); INSERT INTO base_tbl SELECT i, 'Row ' || i FROM generate_series(-2, 2) g(i); CREATE VIEW ro_view1 AS SELECT DISTINCT a, b F...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for access_tokens -- ---------------------------- DROP TABLE IF EXISTS `access_tokens`; CREATE TABLE `access_tokens` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `app_id` int(11) NOT NULL COMMENT 'app_id', `tok...
the_stack
-- create database CREATE DATABASE logi_kafka_manager; USE logi_kafka_manager; -- -- Table structure for table `account` -- -- DROP TABLE IF EXISTS `account`; CREATE TABLE `account` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', `username` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NU...
the_stack
-- https://modern-sql.com/standard -- http://jakewheat.github.io/sql-overview/ -- https://ronsavage.github.io/SQL/ -- SQL-92 =========================================================== -- https://ronsavage.github.io/SQL/sql-92.bnf -- http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt -- https://jakewheat.gith...
the_stack
SELECT affected_table, error_type, COUNT(*) AS cnt FROM ( --for relationship_to_concept --wrong concept_id's SELECT a.concept_code, 'concept_id_2 doesn''t belong to a valid concept' AS error_type, 'relationship_to_concept' AS affected_table FROM relationship_to_concept r JOIN drug_concept_stage a ON a.concept_cod...
the_stack
-- 1 day interval -- create table t_day_1(c1 int, c2 timestamp without time zone, c3 int) partition by range(c2) begin(timestamp without time zone '2015-09-01') step(interval '1 day') partitions(63) distribute by shard(c1); insert into t_day_1 values(1, timestamp without time zone '2015-08-31 13:11:00', 1); select c1,...
the_stack
-- The below script is used to install the AdventureWorksLT sample for In-Memory OLTP in Azure SQL Database. -- The sample requires a new Premium database, created based on the AdventureWorksLT sample. -- -- Last updated: 2016-07-29 -- -- -- Copyright (C) Microsoft Corporation. All rights reserved. -- -- This sourc...
the_stack
-- The relational schema for subgraph metadata -- Everything between the comments 'BEGIN LAYOUT' and 'END LAYOUT' was generated -- by running -- cargo run --example layout -- -g migrate \ -- ./store/postgres/src/subgraphs.graphql subgraphs -- -- Helpers to translate the entity data into the new form -- create te...
the_stack
--add new vocabulary='HemOnc' DO $_$ BEGIN PERFORM VOCABULARY_PACK.AddNewVocabulary( pVocabulary_id => 'HemOnc', pVocabulary_name => 'HemOnc', pVocabulary_reference => 'https://hemonc.org', pVocabulary_version => 'HemOnc 2019-05-30', pOMOP_req => NULL, --NULL or 'Y' pClick_default => NULL, --NULL or 'Y'...
the_stack
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = fals...
the_stack
----------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2011 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not...
the_stack
-- 2017-09-02T14:29:06.228 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540220,541071,TO_TIMESTAMP('2017-09-02 14:29:06','YYYY-MM-DD HH24...
the_stack
-- 2017-12-05T19:09:20.172 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,540903,540557,TO_TIMESTAMP('2017-12-05 19:09:19','YYYY-MM-DD HH24:MI:SS'),1...
the_stack
Sector SS Hex Name UWP Bases Remarks Zone PBG Allegiance Stars {Ix} (Ex) [Cx] Nobility W RU Kfaz A 0206 Ganknouga C898310-6 Lo Ni 110 Va F4 V 0 Kfaz A 0210 Dzonue B000554-A As Ni 103 Va K4 V M6 V 0 Kfaz A 0304 Gadzokugz C580220-2 De Lo Ni 410 Va K0 V D 0 Kfaz A 0306 Kirgvueng B100699-C C Na Ni Va ...
the_stack
-- 2020-08-31T15:08:23.475Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Index_Table SET WhereClause='C_BPartner_ID IS NOT NULL AND IsBillToContact_Default=''Y''',Updated=TO_TIMESTAMP('2020-08-31 18:08:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Index_Table_ID=540407 ; -- 2020-08...
the_stack
-- 2018-04-20T16:22:01.762 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,Description,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFie...
the_stack
/* japanese charsets: SJIS, MS932, APPLE_JAPANESE */ /* ======================================================================= */ /* Changes: */ /* 81_50: SJIS == 0xFFE3, MS932 == 0xFFE3, APPLE_JAPANESE == 0x0203 - we use in all systems 0xFFE3 for better MS compatibility */ /* 81_5C: SJIS == 0x2015, MS932 == 0x2015,...
the_stack
use msdb GO -------------------------------------------------------------------------------------------------------------------------------------------- --POLICY CATEGORY: Name Pattern DECLARE @policy_category_id int; SELECT @policy_category_id = policy_category_id FROM dbo.syspolicy_policy_categories where name = ...
the_stack
-- 2021-09-24T11:28:29.133Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updat...
the_stack
BEGIN; -- there was previously a bug that allowed NULL values to be inserted into -- the database for actions (and maybe resources). clean up any such instances. UPDATE iam_statements t SET actions = '{}' WHERE actions IS NULL; ALTER TABLE iam_statements ALTER COLUMN actions SET NOT NULL; UPDATE iam_statements t SET r...
the_stack
CREATE OR REPLACE FUNCTION chkrolattr() RETURNS TABLE ("role" name, rolekeyword text, canlogin bool, replication bool) AS $$ SELECT r.rolname, v.keyword, r.rolcanlogin, r.rolreplication FROM pg_roles r JOIN (VALUES(CURRENT_USER, 'current_user'), (SESSION_USER, 'session_user'), ('current_us...
the_stack
-- -- The contents of this file are subject to the license and copyright -- detailed in the LICENSE and NOTICE files at the root of the source -- tree and available online at -- -- http://www.dspace.org/license/ -- ------------------------------------------------------------------------- -- DS-3431 Workflow system is ...
the_stack
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: sidewalk; Type: SCHEMA; Schem...
the_stack
SELECT CURRENT_TIMESTAMP AS '', 'Upgrading database schema to 3.3.0' AS ''; SELECT CURRENT_TIMESTAMP AS '', 'Dropping existing foreign key constraints' AS ''; ALTER TABLE `application_configs` DROP FOREIGN KEY `APPLICATION_CONFIGS_APPLICATION_ID_FK`; ALTER TABLE ...
the_stack
----------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2007 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not so...
the_stack
SET search_path = pg_catalog; -- DEPCY: This FUNCTION is a dependency of AGGREGATE: public.mode1(boolean) CREATE OR REPLACE FUNCTION public.mode_m_final1(bigint[]) RETURNS boolean LANGUAGE sql AS $$ SELECT 1>2 $$; ALTER FUNCTION public.mode_m_final1(bigint[]) OWNER TO shamsutdinov_lr; -- DEPCY: This FUNCTIO...
the_stack
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpg...
the_stack
SET NUMERIC_ROUNDABORT OFF GO SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS ON GO SET XACT_ABORT ON GO SET TRANSACTION ISOLATION LEVEL Serializable GO BEGIN TRANSACTION GO IF @@ERROR <> 0 SET NOEXEC ON GO PRINT N'Dropping foreign keys from [dbo].[COMPONENT_QUESTION...
the_stack
-- Copyright (c) Microsoft Corporation. All rights reserved. --========================================================================== -- Sample Tracking Database --========================================================================== use [TrackingSample] go set ansi_nulls on; go set quoted_identifier on; ...
the_stack
DROP FUNCTION IF EXISTS get_location_fixture_ids(TEXT, INTEGER[]); CREATE FUNCTION get_location_fixture_ids( domain_name TEXT, -- array of locations_sqllocation.id (NOT locations_sqllocation.location_id) user_location_ids_array INTEGER[] ) RETURNS TABLE ( "id" INTEGER, -- location id "path" I...
the_stack
-- Problembereichscode always updatable -- 2021-07-01T08:20:27.658Z -- URL zum Konzept UPDATE AD_Column SET IsAlwaysUpdateable='Y',Updated=TO_TIMESTAMP('2021-07-01 10:20:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572814 ; -- Change PO Reference Type -- 2021-07-01T08:25:47.557Z -- URL zum Konzept UPD...
the_stack
DROP FUNCTION IF EXISTS test_add1(INTEGER, INTEGER); DROP FUNCTION IF EXISTS test_select(INTEGER, INTEGER[]); CREATE OR REPLACE FUNCTION test_add1(i IN INTEGER, j IN INTEGER) RETURN INTEGER AS temp INTEGER :=0; BEGIN temp:= j + i; RETURN temp; END; / CREATE OR REPLACE FUNCTION test_select(i IN INTEGER, VARIADIC arr ...
the_stack
-- creates the tables for the ecal daq configuration -- 12-1-2007 -- by F. Cavallari and P. Musella -- updated by FC on 14/3/2008 -- ********** ECAL_RUN CREATE TABLE ECAL_RUN_MODE_DEF ( DEF_ID NUMBER NOT NULL , RUN_MODE_STRING VARCHAR2(20) ); ALTER TABLE ECAL_RUN_MODE_DEF ADD CONSTRAINT ecal_run_mode_def_pk ...
the_stack
-- 2020-04-05T10:20:00.374Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Window (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,IsActive,IsBetaFunctionality,IsDefault,IsEnableRemoteCacheInvalidation,IsOneInstanceOnly,IsSOTrx,Name,Processing...
the_stack
-- 2019-03-05T14:27:34.696 -- #298 changing anz. stellen INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,564327,575998...
the_stack
#include "rtl/tencinfo.h" namespace { // RTL_TEXTENCODING_ADOBE_STANDARD is based on // <http://www.unicode.org/Public/MAPPINGS/VENDORS/ADOBE/stdenc.txt> revision // "v0.2, 30 March 1999". rtl::textenc::BmpUnicodeToSingleByteRange const unicodeToAdobeStandardEncoding[] = { { 0x0020, 0x0026 - 0x0020, 0x20 }, { 0x0027...
the_stack
set define off verify off feedback off create or replace package aop_api3_pkg AUTHID CURRENT_USER as /* Copyright 2017 - APEX RnD */ -- AOP Version c_aop_version constant varchar2(5) := '3.0'; c_aop_url constant varchar2(50) := 'http://www.apexofficeprint.com/api/'; -- Global variables -- ...
the_stack
-- 2019-08-11T20:25:43.682Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET AD_Name_ID=576974, Description=NULL, Help=NULL, Name='Beauftragt (Lagereinheit)',Updated=TO_TIMESTAMP('2019-08-11 22:25:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=501597 ; -- 2019-08-11T2...
the_stack
-- 2019-09-20T09:13:28.757Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,I...
the_stack
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may...
the_stack
-- CREATE OR REPLACE PACKAGE XDBPM_DBMS_XDB AUTHID &RIGHTS IS FUNCTION LOCKRESOURCE(ABSPATH IN VARCHAR2, DEPTHZERO IN BOOLEAN, SHARED IN BOOLEAN) return BOOLEAN; $IF DBMS_DB_VERSION.VER_LE_10_2 $THEN $ELSE FUNCTION LOCKRESOURCE(ABSPATH IN VARCHAR2, DEPTHZERO IN BOOLEAN, SHARED IN BOOLEAN, TOKEN OUT VARCHAR2, TIME...
the_stack
-- 2021-02-22T10:05:17.977Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET AD_Window_ID=541024,Updated=TO_TIMESTAMP('2021-02-22 11:05:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=541576 ; -- 2021-02-22T10:05:35.304Z -- I forgot to set the DICTIONARY_ID_COMMENTS Sy...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for cms_help -- ---------------------------- DROP TABLE IF EXISTS `cms_help`; CREATE TABLE `cms_help` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `category_id` bigint(20) NULL DEFAULT NULL, `icon` varchar(500) CHARA...
the_stack
-- 2018-01-22T15:06:49.062 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('W',0,54101...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for bbs_cate -- ---------------------------- DROP TABLE IF EXISTS `bbs_cate`; CREATE TABLE `bbs_cate` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `pid` int(10) unsigned NOT NULL DEFAULT '0', `cname` varchar(255...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `tplay_admin` -- ---------------------------- DROP TABLE IF EXISTS `tplay_admin`; CREATE TABLE `tplay_admin` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nickname` varchar(20) DEFAULT NULL COMMENT '昵称', `name` varchar(100) NOT NULL, `...
the_stack
-- Postgres SQL Statements from postgressql-8.4.1-US.pdf -- -- Extracted 10/5/2009 --COMMENT ON --{ -- TABLE object_name | -- COLUMN table_name.column_name | -- AGGREGATE agg_name (agg_type [, ...] ) | -- CAST (sourcetype AS targettype) | -- CONSTRAINT constraint_name ON table_name | -- CONVERSION object_name | ...
the_stack
create schema distribute_dml; set current_schema = distribute_dml; create table src(a int); insert into src values(1); -- Prepared data create table distribute_source_hash_01(c1 int, c2 numeric, c3 char(10)); create table distribute_target_hash_01(c1 int, c2 numeric, c3 char(10)); create table distribute_source_hash_...
the_stack
-- Creating an index on a partitioned table makes the partitions -- automatically get the index create table idxpart (a int, b int, c text) partition by range (a); create table idxpart1 partition of idxpart for values from (0) to (10); create table idxpart2 partition of idxpart for values from (10) to (100) partition ...
the_stack
/* * This file is used to test the LLVM Optimization in target list expression. * It's purpose is to cover the basic functionality about expressions. */ /******************************** Expression Type: T_Var, T_Const, T_Case, T_OpExpr, T_ScalarArrayOp T_FuncExpr, T_BoolExpr, T_Bo...
the_stack
USE [master]; GO IF (DB_ID(N'PowerConsumption') IS NOT NULL) BEGIN ALTER DATABASE [PowerConsumption] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; DROP DATABASE [PowerConsumption]; END GO PRINT N'Creating PowerConsumption...' GO CREATE DATABASE [PowerConsumption] CONTAINMENT = NONE ON PRIMARY ( NAME = N'P...
the_stack
-- phpMyAdmin SQL Dump -- version 5.2.0-dev+20211229.cb650d2a2d -- https://www.phpmyadmin.net/ -- -- 主机: 127.0.0.1 -- 生成日期: 2022-03-01 12:33:39 -- 服务器版本: 5.7.37 -- PHP 版本: 8.1.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
the_stack
-- 2020-09-17T12:51:11.500Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID, AD_Org_ID, AD_Reference_ID, Created, CreatedBy, EntityType, IsActive, IsOrderByValue, Name, Updated, UpdatedBy, ValidationType) VALUES (0, 0, 541175, TO_TIMESTAMP('2020-09-17 15:51:11', ...
the_stack
-- -- V8 Replication Migration backup script VERSION 1.51, -- generated "May 5 2003" "10:45:31" by CPP for "DB2 OS/390 V8" server: -- -- DO NOT DELETE ANY SQL STATEMENTS FROM THIS SCRIPT. -- -- Users must either create the tablespaces BACKUPTS, PAGETS, ROWTS and -- UOWTS before running this script, or change thes...
the_stack
create or replace function Bounds (g geometry, srid integer = null) returns float[] language plpgsql immutable as $func$ begin if srid is not null then g := ST_Transform(g, srid); end if; return array[ ST_XMin(g), ST_YMin(g), ST_XMax(g), ST_YMax(g) ]; end...
the_stack
CREATE EXTENSION orioledb; CREATE TABLE bitmap_test ( id serial primary key, i int4 ) USING orioledb; CREATE FUNCTION pseudo_random(seed bigint, i bigint) RETURNS float8 AS $$ SELECT substr(sha256(($1::text || ' ' || $2::text)::bytea)::text,2,16)::bit(52)::bigint::float8 / pow(2.0, 52.0); $$ LANGUAGE sql; ALTER S...
the_stack
-- 2021-03-17T05:30:27.880Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET AD_Window_ID=541024,Updated=TO_TIMESTAMP('2021-03-17 06:30:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=541585 ; -- 2021-03-17T05:30:44.610Z -- I forgot to set the DICTIONARY_ID_COMMENTS Sy...
the_stack
-- SET LATEST UPDATE DO $_$ BEGIN PERFORM VOCABULARY_PACK.SetLatestUpdate( pVocabularyName => 'JMDC', pVocabularyDate => CURRENT_DATE, pVocabularyVersion => 'JMDC ' || to_date('20200430', 'YYYYMMDD'), pVocabulary...
the_stack
-- MySQL dump 10.13 Distrib 5.1.56, for slackware-linux-gnu (x86_64) -- -- Host: localhost Database: brutal_development -- ------------------------------------------------------ -- Server version 5.1.56 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHAR...
the_stack
-- ---- test reindex global index -- --drop table and index drop index if exists global_partition_reindex_table_ind1; drop index if exists global_partition_reindex_table_ind2; drop index if exists global_partition_reindex_table_ind3; drop index if exists partition_reindex_table_ind1; drop index if exists partition_rei...
the_stack
declare c_table_name constant user_tables.table_name%type := lower('table_name'); c_drop_triggers constant boolean := false; -- this will drop all triggers associated to the table c_drop_constraints constant boolean := false; -- this will drop all constraints associated to the table c_create_sequence constant ...
the_stack
-- 2018-06-11T17:13:18.684 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET EntityType='D',Updated=TO_TIMESTAMP('2018-06-11 17:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540236 ; -- 2018-06-11T17:15:48.762 -- I forgot to set the DICTIONARY_ID_COMMENTS System Config...
the_stack
-- Copyright Materialize, Inc. and contributors. All rights reserved. -- -- Use of this software is governed by the Business Source License -- included in the LICENSE file at the root of this repository. -- -- As of the Change Date specified in that file, in accordance with -- the Business Source License, use of this s...
the_stack
:SETVAR ServerName "WIN2008" :SETVAR ManagementDatabase "MDW" GO :CONNECT $(ServerName) GO --Create the specified database if it does not exist IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = '$(ManagementDatabase)') CREATE DATABASE $(ManagementDatabase) GO --Create a schema to support the EPM framework object...
the_stack