Skip to content

Commit

Permalink
Merge pull request #4955 from ballerina-platform/praneesha-patch-8
Browse files Browse the repository at this point in the history
Update sales record in `setup_database.bal`
  • Loading branch information
praneesha committed Oct 3, 2023
2 parents f827452 + 1df8890 commit 5e08dd9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/mysql-prerequisite/setup_database.bal
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ public function main() returns sql:Error? {
);`);

// Adds the records to the `sales_order` table.
_ = check mysqlClient->execute(`INSERT INTO inventory VALUES
("A-123", "Lemonade", "Beyonce", 18.98, 10);`);
_ = check mysqlClient->execute(`INSERT INTO inventory VALUES
("A-321", "Renaissance", "Beyonce", 24.98, 100);`);
_ = check mysqlClient->execute(`INSERT INTO MUSIC_STORE.sales_order VALUES
("S-123", "2022-12-09", "A-123", 2);`);
_ = check mysqlClient->execute(`INSERT INTO MUSIC_STORE.sales_order VALUES
("S-321", "2022-12-09", "A-321", 1);`);
_ = check mysqlClient->execute(`INSERT INTO MUSIC_STORE.sales_order VALUES
("S-456", "2022-12-10", "A-321", 3);`);

check mysqlClient.close();
}

0 comments on commit 5e08dd9

Please sign in to comment.