%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/db_backups/databaze/mysql/
Upload File :
Create Path :
Current File : //home/waritko/db_backups/databaze/mysql/proc.sql

-- MySQL dump 10.14  Distrib 5.5.60-MariaDB, for Linux (x86_64)
--
-- Host: localhost    Database: mysql
-- ------------------------------------------------------
-- Server version	5.5.60-MariaDB

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `proc`
--

DROP TABLE IF EXISTS `proc`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `proc` (
  `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  `name` char(64) NOT NULL DEFAULT '',
  `type` enum('FUNCTION','PROCEDURE') NOT NULL,
  `specific_name` char(64) NOT NULL DEFAULT '',
  `language` enum('SQL') NOT NULL DEFAULT 'SQL',
  `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
  `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
  `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
  `param_list` blob NOT NULL,
  `returns` longblob NOT NULL,
  `body` longblob NOT NULL,
  `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '',
  `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  `body_utf8` longblob,
  PRIMARY KEY (`db`,`name`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `proc`
--

LOCK TABLES `proc` WRITE;
/*!40000 ALTER TABLE `proc` DISABLE KEYS */;
INSERT INTO `proc` VALUES ('knih_monami','UpdatePemic','PROCEDURE','UpdatePemic','SQL','CONTAINS_SQL','NO','DEFINER','IN v_id_pemic varchar(12),\r\n			IN v_id_ktg int,\r\n			IN v_id_ktg_p int,\r\n			IN v_nazev varchar(256),\r\n			IN v_identif_nouni varchar(256),\r\n			IN v_podnazev varchar(512),\r\n			IN v_autor varchar(254),\r\n			IN v_nakladatel varchar(256),\r\n			IN v_edice varchar(256),\r\n			IN v_jazyk char(3),\r\n			IN v_anotace text,\r\n			IN v_isbn varchar(24),\r\n			IN v_ean varchar(24),\r\n			IN v_stran int,\r\n			IN v_vazba varchar(64),\r\n			IN v_vyska int,\r\n			IN v_sirka int,\r\n			IN v_tloustka int,\r\n			IN v_hmotnost double,\r\n			IN v_planovane_vydani date,\r\n			IN v_vydano date,\r\n			IN v_dotisk date,\r\n			IN v_obrazek varchar(128),\r\n			IN v_dostupnost char(1),\r\n			IN v_zobraz char(1),\r\n			OUT update_pemic varchar(32)','','BEGIN\r\n		DECLARE Pocet_Vyskytu int;\r\n		SET Pocet_Vyskytu = (SELECT COUNT(*) FROM katalog_update WHERE identif_nouni=v_identif_nouni);\r\n		IF EXISTS (SELECT * FROM katalog_update WHERE id_pemic=v_id_pemic) THEN\r\n				IF EXISTS (SELECT * FROM katalog_update WHERE identif_nouni=v_identif_nouni) THEN\r\n            UPDATE katalog_update SET id_ktg=v_id_ktg, id_ktg_p=v_id_ktg_p, nazev=v_nazev, identif=CONCAT(v_identif_nouni,\'-\',(Pocet_Vyskytu+1)), identif_nouni=v_identif_nouni, podnazev=v_podnazev, autor=v_autor, nakladatel=v_nakladatel, edice=v_edice, jazyk=v_jazyk, anotace=v_anotace, isbn=v_isbn, ean=v_ean, stran=v_stran, vazba=v_vazba, vyska=v_vyska, sirka=v_sirka, tloustka=v_tloustka, hmotnost=v_hmotnost, planovane_vydani=v_planovane_vydani, vydano=v_vydano, dotisk=v_dotisk, obrazek=v_obrazek, dostupnost=v_dostupnost, zobraz=v_zobraz WHERE id_pemic = v_id_pemic;\r\n				ELSE\r\n			UPDATE katalog_update SET id_ktg=v_id_ktg, id_ktg_p=v_id_ktg_p, nazev=v_nazev, identif=v_identif_nouni, identif_nouni=v_identif_nouni, podnazev=v_podnazev, autor=v_autor, nakladatel=v_nakladatel, edice=v_edice, jazyk=v_jazyk, anotace=v_anotace, isbn=v_isbn, ean=v_ean, stran=v_stran, vazba=v_vazba, vyska=v_vyska, sirka=v_sirka, tloustka=v_tloustka, hmotnost=v_hmotnost, planovane_vydani=v_planovane_vydani, vydano=v_vydano, dotisk=v_dotisk, obrazek=v_obrazek, dostupnost=v_dostupnost, zobraz=v_zobraz WHERE id_pemic = v_id_pemic;\r\n        END IF;\r\n        SET update_pemic = \'UPDATE\';\r\n		ELSE\r\n				IF EXISTS (SELECT * FROM katalog_update WHERE identif_nouni=v_identif_nouni) THEN\r\n			INSERT INTO katalog_update (id_pemic, id_ktg, id_ktg_p, nazev, identif, identif_nouni, podnazev, autor, nakladatel, edice, jazyk, anotace, isbn, ean, stran, vazba, vyska, sirka, tloustka, hmotnost, planovane_vydani, vydano, dotisk, obrazek, dostupnost, zobraz) VALUES (v_id_pemic, v_id_ktg, v_id_ktg_p, v_nazev, CONCAT(v_identif_nouni,\'-\',Pocet_Vyskytu), v_identif_nouni, v_podnazev, v_autor, v_nakladatel, v_edice, v_jazyk, v_anotace, v_isbn, v_ean, v_stran, v_vazba, v_vyska, v_sirka, v_tloustka, v_hmotnost, v_planovane_vydani, v_vydano, v_dotisk, v_obrazek, v_dostupnost, v_zobraz);\r\n				ELSE\r\n			INSERT INTO katalog_update (id_pemic, id_ktg, id_ktg_p, nazev, identif, identif_nouni, podnazev, autor, nakladatel, edice, jazyk, anotace, isbn, ean, stran, vazba, vyska, sirka, tloustka, hmotnost, planovane_vydani, vydano, dotisk, obrazek, dostupnost, zobraz) VALUES (v_id_pemic, v_id_ktg, v_id_ktg_p, v_nazev, v_identif_nouni, v_identif_nouni, v_podnazev, v_autor, v_nakladatel, v_edice, v_jazyk, v_anotace, v_isbn, v_ean, v_stran, v_vazba, v_vyska, v_sirka, v_tloustka, v_hmotnost, v_planovane_vydani, v_vydano, v_dotisk, v_obrazek, v_dostupnost, v_zobraz);\r\n        END IF;\r\n        SET update_pemic = \'INSERT\';\r\n	END IF;\r\nEND','knih_monami@localhost','2016-01-31 10:58:24','2016-01-31 10:58:24','NO_AUTO_VALUE_ON_ZERO','','utf8','utf8_general_ci','cp1250_general_ci','BEGIN\r\n		DECLARE Pocet_Vyskytu int;\r\n		SET Pocet_Vyskytu = (SELECT COUNT(*) FROM katalog_update WHERE identif_nouni=v_identif_nouni);\r\n		IF EXISTS (SELECT * FROM katalog_update WHERE id_pemic=v_id_pemic) THEN\r\n				IF EXISTS (SELECT * FROM katalog_update WHERE identif_nouni=v_identif_nouni) THEN\r\n            UPDATE katalog_update SET id_ktg=v_id_ktg, id_ktg_p=v_id_ktg_p, nazev=v_nazev, identif=CONCAT(v_identif_nouni,\'-\',(Pocet_Vyskytu+1)), identif_nouni=v_identif_nouni, podnazev=v_podnazev, autor=v_autor, nakladatel=v_nakladatel, edice=v_edice, jazyk=v_jazyk, anotace=v_anotace, isbn=v_isbn, ean=v_ean, stran=v_stran, vazba=v_vazba, vyska=v_vyska, sirka=v_sirka, tloustka=v_tloustka, hmotnost=v_hmotnost, planovane_vydani=v_planovane_vydani, vydano=v_vydano, dotisk=v_dotisk, obrazek=v_obrazek, dostupnost=v_dostupnost, zobraz=v_zobraz WHERE id_pemic = v_id_pemic;\r\n				ELSE\r\n			UPDATE katalog_update SET id_ktg=v_id_ktg, id_ktg_p=v_id_ktg_p, nazev=v_nazev, identif=v_identif_nouni, identif_nouni=v_identif_nouni, podnazev=v_podnazev, autor=v_autor, nakladatel=v_nakladatel, edice=v_edice, jazyk=v_jazyk, anotace=v_anotace, isbn=v_isbn, ean=v_ean, stran=v_stran, vazba=v_vazba, vyska=v_vyska, sirka=v_sirka, tloustka=v_tloustka, hmotnost=v_hmotnost, planovane_vydani=v_planovane_vydani, vydano=v_vydano, dotisk=v_dotisk, obrazek=v_obrazek, dostupnost=v_dostupnost, zobraz=v_zobraz WHERE id_pemic = v_id_pemic;\r\n        END IF;\r\n        SET update_pemic = \'UPDATE\';\r\n		ELSE\r\n				IF EXISTS (SELECT * FROM katalog_update WHERE identif_nouni=v_identif_nouni) THEN\r\n			INSERT INTO katalog_update (id_pemic, id_ktg, id_ktg_p, nazev, identif, identif_nouni, podnazev, autor, nakladatel, edice, jazyk, anotace, isbn, ean, stran, vazba, vyska, sirka, tloustka, hmotnost, planovane_vydani, vydano, dotisk, obrazek, dostupnost, zobraz) VALUES (v_id_pemic, v_id_ktg, v_id_ktg_p, v_nazev, CONCAT(v_identif_nouni,\'-\',Pocet_Vyskytu), v_identif_nouni, v_podnazev, v_autor, v_nakladatel, v_edice, v_jazyk, v_anotace, v_isbn, v_ean, v_stran, v_vazba, v_vyska, v_sirka, v_tloustka, v_hmotnost, v_planovane_vydani, v_vydano, v_dotisk, v_obrazek, v_dostupnost, v_zobraz);\r\n				ELSE\r\n			INSERT INTO katalog_update (id_pemic, id_ktg, id_ktg_p, nazev, identif, identif_nouni, podnazev, autor, nakladatel, edice, jazyk, anotace, isbn, ean, stran, vazba, vyska, sirka, tloustka, hmotnost, planovane_vydani, vydano, dotisk, obrazek, dostupnost, zobraz) VALUES (v_id_pemic, v_id_ktg, v_id_ktg_p, v_nazev, v_identif_nouni, v_identif_nouni, v_podnazev, v_autor, v_nakladatel, v_edice, v_jazyk, v_anotace, v_isbn, v_ean, v_stran, v_vazba, v_vyska, v_sirka, v_tloustka, v_hmotnost, v_planovane_vydani, v_vydano, v_dotisk, v_obrazek, v_dostupnost, v_zobraz);\r\n        END IF;\r\n        SET update_pemic = \'INSERT\';\r\n	END IF;\r\nEND'),('knih_monami','UpdatePemicFull','PROCEDURE','UpdatePemicFull','SQL','CONTAINS_SQL','NO','DEFINER','IN v_id_pemic varchar(12),\r\n			IN v_id_ktg int,\r\n			IN v_id_ktg_p int,\r\n			IN v_nazev varchar(256),\r\n			IN v_identif_nouni varchar(256),\r\n			IN v_podnazev varchar(512),\r\n			IN v_autor varchar(254),\r\n			IN v_nakladatel varchar(256),\r\n			IN v_edice varchar(256),\r\n			IN v_jazyk char(3),\r\n			IN v_anotace text,\r\n			IN v_isbn varchar(24),\r\n			IN v_ean varchar(24),\r\n			IN v_stran int,\r\n			IN v_vazba varchar(64),\r\n			IN v_vyska int,\r\n			IN v_sirka int,\r\n			IN v_tloustka int,\r\n			IN v_hmotnost double,\r\n			IN v_planovane_vydani date,\r\n			IN v_vydano date,\r\n			IN v_dotisk date,\r\n			IN v_obrazek varchar(128),\r\n			IN v_dostupnost char(1),\r\n			IN v_zobraz char(1)','','BEGIN\r\n		DECLARE Pocet_Vyskytu int;\r\n		SET Pocet_Vyskytu = (SELECT COUNT(*) FROM katalog_update WHERE identif_nouni=v_identif_nouni);\r\n		IF EXISTS (SELECT * FROM katalog_update WHERE id_pemic=v_id_pemic) THEN\r\n                UPDATE katalog_update SET jazyk=v_jazyk, anotace=v_anotace, isbn=v_isbn, ean=v_ean, stran=v_stran, vazba=v_vazba, vyska=v_vyska, sirka=v_sirka, tloustka=v_tloustka, hmotnost=v_hmotnost, planovane_vydani=v_planovane_vydani, vydano=v_vydano, dotisk=v_dotisk, obrazek=v_obrazek, dostupnost=v_dostupnost, zobraz=v_zobraz WHERE id_pemic = v_id_pemic;\r\n		ELSE\r\n				IF EXISTS (SELECT * FROM katalog_update WHERE identif_nouni=v_identif_nouni) THEN\r\n			INSERT INTO katalog_update (id_pemic, id_ktg, id_ktg_p, nazev, identif, identif_nouni, podnazev, autor, nakladatel, edice, jazyk, anotace, isbn, ean, stran, vazba, vyska, sirka, tloustka, hmotnost, planovane_vydani, vydano, dotisk, obrazek, dostupnost, zobraz) VALUES (v_id_pemic, v_id_ktg, v_id_ktg_p, v_nazev, CONCAT(v_identif_nouni,\'-\',Pocet_Vyskytu), v_identif_nouni, v_podnazev, v_autor, v_nakladatel, v_edice, v_jazyk, v_anotace, v_isbn, v_ean, v_stran, v_vazba, v_vyska, v_sirka, v_tloustka, v_hmotnost, v_planovane_vydani, v_vydano, v_dotisk, v_obrazek, v_dostupnost, v_zobraz);\r\n				ELSE\r\n			INSERT INTO katalog_update (id_pemic, id_ktg, id_ktg_p, nazev, identif, identif_nouni, podnazev, autor, nakladatel, edice, jazyk, anotace, isbn, ean, stran, vazba, vyska, sirka, tloustka, hmotnost, planovane_vydani, vydano, dotisk, obrazek, dostupnost, zobraz) VALUES (v_id_pemic, v_id_ktg, v_id_ktg_p, v_nazev, v_identif_nouni, v_identif_nouni, v_podnazev, v_autor, v_nakladatel, v_edice, v_jazyk, v_anotace, v_isbn, v_ean, v_stran, v_vazba, v_vyska, v_sirka, v_tloustka, v_hmotnost, v_planovane_vydani, v_vydano, v_dotisk, v_obrazek, v_dostupnost, v_zobraz);\r\n        END IF;\r\n	END IF;\r\nEND','knih_monami@localhost','2016-01-31 10:58:24','2016-01-31 10:58:24','NO_AUTO_VALUE_ON_ZERO','','utf8','utf8_general_ci','cp1250_general_ci','BEGIN\r\n		DECLARE Pocet_Vyskytu int;\r\n		SET Pocet_Vyskytu = (SELECT COUNT(*) FROM katalog_update WHERE identif_nouni=v_identif_nouni);\r\n		IF EXISTS (SELECT * FROM katalog_update WHERE id_pemic=v_id_pemic) THEN\r\n                UPDATE katalog_update SET jazyk=v_jazyk, anotace=v_anotace, isbn=v_isbn, ean=v_ean, stran=v_stran, vazba=v_vazba, vyska=v_vyska, sirka=v_sirka, tloustka=v_tloustka, hmotnost=v_hmotnost, planovane_vydani=v_planovane_vydani, vydano=v_vydano, dotisk=v_dotisk, obrazek=v_obrazek, dostupnost=v_dostupnost, zobraz=v_zobraz WHERE id_pemic = v_id_pemic;\r\n		ELSE\r\n				IF EXISTS (SELECT * FROM katalog_update WHERE identif_nouni=v_identif_nouni) THEN\r\n			INSERT INTO katalog_update (id_pemic, id_ktg, id_ktg_p, nazev, identif, identif_nouni, podnazev, autor, nakladatel, edice, jazyk, anotace, isbn, ean, stran, vazba, vyska, sirka, tloustka, hmotnost, planovane_vydani, vydano, dotisk, obrazek, dostupnost, zobraz) VALUES (v_id_pemic, v_id_ktg, v_id_ktg_p, v_nazev, CONCAT(v_identif_nouni,\'-\',Pocet_Vyskytu), v_identif_nouni, v_podnazev, v_autor, v_nakladatel, v_edice, v_jazyk, v_anotace, v_isbn, v_ean, v_stran, v_vazba, v_vyska, v_sirka, v_tloustka, v_hmotnost, v_planovane_vydani, v_vydano, v_dotisk, v_obrazek, v_dostupnost, v_zobraz);\r\n				ELSE\r\n			INSERT INTO katalog_update (id_pemic, id_ktg, id_ktg_p, nazev, identif, identif_nouni, podnazev, autor, nakladatel, edice, jazyk, anotace, isbn, ean, stran, vazba, vyska, sirka, tloustka, hmotnost, planovane_vydani, vydano, dotisk, obrazek, dostupnost, zobraz) VALUES (v_id_pemic, v_id_ktg, v_id_ktg_p, v_nazev, v_identif_nouni, v_identif_nouni, v_podnazev, v_autor, v_nakladatel, v_edice, v_jazyk, v_anotace, v_isbn, v_ean, v_stran, v_vazba, v_vyska, v_sirka, v_tloustka, v_hmotnost, v_planovane_vydani, v_vydano, v_dotisk, v_obrazek, v_dostupnost, v_zobraz);\r\n        END IF;\r\n	END IF;\r\nEND'),('knih_monami','SaveOrder','PROCEDURE','SaveOrder','SQL','CONTAINS_SQL','NO','DEFINER','IN `v_SID` varchar(254), IN `v_id_usr` int, IN `v_d_jmeno` varchar(128), IN `v_d_adresa` varchar(254), IN `v_d_mesto` varchar(128), IN `v_d_psc` varchar(6), IN `v_doprava` varchar(24), IN `v_poznamka` varchar(1024), IN `v_cena` double, IN `v_postovne` double, OUT `last_id` int','','BEGIN\r\n	DECLARE New_Id_Obj int;\r\n	IF EXISTS (SELECT * FROM kosik WHERE sessid=v_SID) THEN\r\n		INSERT INTO objednavky (id_usr, d_jmeno, d_adresa, d_mesto, d_psc, doprava, poznamka, cena_zbozi, postovne, cena_celkem, createdat) VALUES (v_id_usr, v_d_jmeno, v_d_adresa, v_d_mesto, v_d_psc, v_doprava, v_poznamka, v_cena, v_postovne, (v_cena + v_postovne), NOW());\r\n		SET New_Id_Obj = LAST_INSERT_ID();\r\n		INSERT INTO polozky (id_obj, id_kat, pocet, cena) SELECT New_Id_Obj, kos.id_kat, kos.pocet, IF(kat.cena_pohoda > 0, kat.cena_pohoda, kat.cena) FROM kosik kos, katalog kat WHERE sessid=v_SID AND kos.id_kat=kat.id_kat ORDER BY id_cart ASC;\r\n		DELETE FROM kosik WHERE sessid=v_SID;\r\n		SET last_id = New_Id_Obj;\r\n	ELSE\r\n		SET last_id = 0;\r\n	END IF;\r\nEND','root@localhost','2016-03-14 08:56:46','2016-03-14 08:56:46','','','utf8mb4','utf8mb4_general_ci','cp1250_general_ci','BEGIN\r\n	DECLARE New_Id_Obj int;\r\n	IF EXISTS (SELECT * FROM kosik WHERE sessid=v_SID) THEN\r\n		INSERT INTO objednavky (id_usr, d_jmeno, d_adresa, d_mesto, d_psc, doprava, poznamka, cena_zbozi, postovne, cena_celkem, createdat) VALUES (v_id_usr, v_d_jmeno, v_d_adresa, v_d_mesto, v_d_psc, v_doprava, v_poznamka, v_cena, v_postovne, (v_cena + v_postovne), NOW());\r\n		SET New_Id_Obj = LAST_INSERT_ID();\r\n		INSERT INTO polozky (id_obj, id_kat, pocet, cena) SELECT New_Id_Obj, kos.id_kat, kos.pocet, IF(kat.cena_pohoda > 0, kat.cena_pohoda, kat.cena) FROM kosik kos, katalog kat WHERE sessid=v_SID AND kos.id_kat=kat.id_kat ORDER BY id_cart ASC;\r\n		DELETE FROM kosik WHERE sessid=v_SID;\r\n		SET last_id = New_Id_Obj;\r\n	ELSE\r\n		SET last_id = 0;\r\n	END IF;\r\nEND'),('gnufm','update_user_stats_scrobble_count','PROCEDURE','update_user_stats_scrobble_count','SQL','CONTAINS_SQL','NO','DEFINER','uid INT','','main: BEGIN\n				DECLARE s_count INT;\n				UPDATE User_Stats SET scrobble_count = (scrobble_count + 1) WHERE userid = uid;\n				IF ROW_COUNT() > 0 THEN\n					LEAVE main;\n				END IF;\n				SELECT COUNT(userid) INTO s_count FROM Scrobbles WHERE userid = uid;\n				INSERT INTO User_Stats(userid, scrobble_count) VALUES(uid, s_count);\n			END main','gnufm@localhost','2018-10-05 13:29:01','2018-10-05 13:29:01','','','latin1','latin1_swedish_ci','utf8_general_ci','main: BEGIN\n				DECLARE s_count INT;\n				UPDATE User_Stats SET scrobble_count = (scrobble_count + 1) WHERE userid = uid;\n				IF ROW_COUNT() > 0 THEN\n					LEAVE main;\n				END IF;\n				SELECT COUNT(userid) INTO s_count FROM Scrobbles WHERE userid = uid;\n				INSERT INTO User_Stats(userid, scrobble_count) VALUES(uid, s_count);\n			END main');
/*!40000 ALTER TABLE `proc` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-11-09  4:26:59

Zerion Mini Shell 1.0