List of commits:
Subject Hash Author Date (UTC)
Quick fix on testing semicolons. 7f48d88d2ed69213d803a7736df3d50330cfecd1 aubert@math.cnrs.fr 2020-11-03 14:14:06
Added simple example to test if semicolon are important in SQL querries. 98097fb11558c08bad630fb3351f99ceb6777de7 aubert@math.cnrs.fr 2020-11-03 14:11:22
Updated spots to https. a8daf1768395aa296bf0dd05783dd53c757d5d19 aubert@math.cnrs.fr 2020-10-05 16:18:44
Adding quiz #2 98e0ae5b8ce766524f60c91adb1040235e1bbf31 aubert@math.cnrs.fr 2020-10-02 19:00:15
Added exam 1 e2f62ae4bf26fcc4b86e8665060ccf3918e7abeb aubert@math.cnrs.fr 2020-09-24 12:51:36
worked on solution to first exam. b13ad99dd895f124df1b642fd990071fc09db294 aubert@math.cnrs.fr 2020-09-23 17:44:01
Added solution to first problem. 0948cee47ed78dc115fd69c7bcf96a312dd3162f aubert@math.cnrs.fr 2020-09-18 21:43:00
Added solution to problem 2 of Exam #1. 7ad20b3c0025a4de3fa00729de570c6fe9176773 aubert@math.cnrs.fr 2020-09-18 21:34:19
Added solution to project 1. de427d78745593ab53dc70e7129b67fee1d4489c aubert@math.cnrs.fr 2020-09-10 19:04:45
Added example for MAX and NULL values. b82a496a5ffbcecaf2c5851f18d1b08ce8732623 aubert@math.cnrs.fr 2020-09-10 13:14:13
Changed SQL code formatting. 6c3cad5a2545f46ab113f7df7a83457857d82ed8 aubert@math.cnrs.fr 2020-09-09 17:04:55
Cleaned code. 5bdb4faed3a83b81257734f1e1aced2890783f04 aubert@math.cnrs.fr 2020-09-03 21:35:41
Added the first project. 564a02887933f2395bc40d7d8a10833f657659fd aubert@math.cnrs.fr 2020-08-28 22:34:08
Week 2 edits, added quiz #1, couple of fixes, replaced single quote with double quotes. 3c9942731678900122088356db3a2cbabd99b9be aubert@math.cnrs.fr 2020-08-27 19:00:13
Added ressource for makefile. 7696c44bca707646530a7dbb71bf2e05badaa306 aubert@math.cnrs.fr 2020-08-03 16:00:23
Crystal's final edits. 714e3030423a836c4ba07890f9aa5e45f58ad15a aubert@math.cnrs.fr 2020-05-21 17:43:26
Converted an image into a figure (Movie example). c55e61ed5d11631e908d99b14ef10a0a0247bda0 aubert@math.cnrs.fr 2020-05-20 20:58:41
Re-formatted SQL code. 915442a1ba4d8baa120343f98de5ee39d4ac45f6 aubert@math.cnrs.fr 2020-05-18 15:52:06
Fixed Known_bugs 5900c572928ec3b8c98c82fe4e95ebbe9aeee6c3 aubert@math.cnrs.fr 2020-05-15 18:19:36
Fixed contrib and enriched example. 04864c0ee2d4fa77b4e681ebf8049c4642bf1e67 aubert@math.cnrs.fr 2020-05-15 18:17:22
Commit 7f48d88d2ed69213d803a7736df3d50330cfecd1 - Quick fix on testing semicolons.
Author: aubert@math.cnrs.fr
Author date (UTC): 2020-11-03 14:14
Committer name: aubert@math.cnrs.fr
Committer date (UTC): 2020-11-03 14:14
Parent(s): 98097fb11558c08bad630fb3351f99ceb6777de7
Signer:
Signing key:
Signing status: N
Tree: eec4f6af7c030851c47ab06b166b13e363a2a405
File Lines added Lines deleted
notes/code/java/TestingSemicolon.java 7 14
File notes/code/java/TestingSemicolon.java changed (mode: 100644) (index a525f76..f906c2a)
1 1 // code/java/TestingSemicolon.java // code/java/TestingSemicolon.java
2 2
3 // java.util.Scanner is an API to read from the keyboard.
4 3 import java.sql.*; import java.sql.*;
5 import java.util.Scanner;
6 4
7 5 public class TestingSemicolon { public class TestingSemicolon {
8 6 public static void main(String[] args) { public static void main(String[] args) {
 
... ... public class TestingSemicolon {
10 8 DriverManager.getConnection( DriverManager.getConnection(
11 9 "jdbc:mysql://localhost:3306/?user=testuser&password=password" "jdbc:mysql://localhost:3306/?user=testuser&password=password"
12 10 + "&allowMultiQueries=true"); + "&allowMultiQueries=true");
13 Statement stmt =
14 conn.createStatement(); ) {
11 Statement stmt = conn.createStatement(); ) {
15 12 stmt.addBatch("DROP SCHEMA IF EXISTS HW_Testing_Semicolon"); stmt.addBatch("DROP SCHEMA IF EXISTS HW_Testing_Semicolon");
16 13 stmt.addBatch("CREATE SCHEMA HW_Testing_Semicolon"); stmt.addBatch("CREATE SCHEMA HW_Testing_Semicolon");
17 14 stmt.addBatch("USE HW_Testing_Semicolon"); stmt.addBatch("USE HW_Testing_Semicolon");
 
... ... public class TestingSemicolon {
21 18 stmt.executeUpdate("INSERT INTO Test VALUES(1);"); // Ok stmt.executeUpdate("INSERT INTO Test VALUES(1);"); // Ok
22 19 stmt.executeUpdate("INSERT INTO Test VALUES(1); INSERT INTO Test VALUES(1)"); // Ok stmt.executeUpdate("INSERT INTO Test VALUES(1); INSERT INTO Test VALUES(1)"); // Ok
23 20 stmt.executeUpdate("INSERT INTO Test VALUES(1); INSERT INTO Test VALUES(1);"); // Ok stmt.executeUpdate("INSERT INTO Test VALUES(1); INSERT INTO Test VALUES(1);"); // Ok
24 }
25 catch (SQLException ex) {
21 } catch (SQLException ex) {
26 22 ex.printStackTrace(); ex.printStackTrace();
27 23 } }
28
24
29 25 try (Connection conn = try (Connection conn =
30 26 DriverManager.getConnection( DriverManager.getConnection(
31 "jdbc:mysql://localhost:3306/?user=testuser&password=password"); // without + "&allowMultiQueries=true"
32 Statement stmt =
33 conn.createStatement(); ) {
27 "jdbc:mysql://localhost:3306/?user=testuser&password=password"); // without +
28 // "&allowMultiQueries=true"
29 Statement stmt = conn.createStatement(); ) {
34 30 stmt.addBatch("DROP SCHEMA IF EXISTS HW_Testing_Semicolon"); stmt.addBatch("DROP SCHEMA IF EXISTS HW_Testing_Semicolon");
35 31 stmt.addBatch("CREATE SCHEMA HW_Testing_Semicolon"); stmt.addBatch("CREATE SCHEMA HW_Testing_Semicolon");
36 32 stmt.addBatch("USE HW_Testing_Semicolon"); stmt.addBatch("USE HW_Testing_Semicolon");
 
... ... public class TestingSemicolon {
41 37 // stmt.executeUpdate("INSERT INTO Test VALUES(1);INSERT INTO Test VALUES(1)"); // Not Ok // stmt.executeUpdate("INSERT INTO Test VALUES(1);INSERT INTO Test VALUES(1)"); // Not Ok
42 38 // stmt.executeUpdate("INSERT INTO Test VALUES(1);INSERT INTO Test VALUES(1);"); // Not Ok // stmt.executeUpdate("INSERT INTO Test VALUES(1);INSERT INTO Test VALUES(1);"); // Not Ok
43 39
44 }
45 catch (SQLException ex) {
40 } catch (SQLException ex) {
46 41 ex.printStackTrace(); ex.printStackTrace();
47 42 } }
48
49
50 43 } }
51 44 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/caubert/CSCI_3410

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/caubert/CSCI_3410

Clone this repository using git:
git clone git://git.rocketgit.com/user/caubert/CSCI_3410

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main