develop #26

Merged
vex merged 48 commits from develop into main 2025-04-21 15:14:19 +00:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit ce8cf93f46 - Show all commits

View File

@ -1,13 +1,16 @@
CREATE PROCEDURE prepare_data()
BEGIN
DECLARE i INT DEFAULT 1;
DECLARE emailString CHAR(16) DEFAULT 'test';
WHILE i < 100
DO
SET emailString = CONCAT(emailString, CAST(i AS CHAR(16)), '@test.de');
INSERT INTO webshop.user(is_active, name, lower_name, email)
VALUES ('1', 'harry', 'potter', 'test@test.de');
VALUES ('1', 'harry', 'potter', emailString);
SET i = i + 1;
end while;
end;
CALL prepare_data();
#CALL prepare_data();

View File

@ -10,7 +10,7 @@ const connection = mysql.createConnection({
connection.connect(function (err) {
if (err) throw err
console.log("Connected to database")
connection.query("SELECT * FROM user WHERE ID = 1", function (err, result) {
connection.query("SELECT * FROM webshop.user WHERE ID = 1", function (err, result) {
if (err) throw err
console.log(result)
})