Revize ba652858
Přidáno uživatelem Michal Horký před asi 4 roky(ů)
project/Deserializer/src/io/Database.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.sql.Blob; |
4 | 4 |
import java.sql.Connection; |
5 |
import java.sql.Driver; |
|
6 | 5 |
import java.sql.DriverManager; |
7 | 6 |
import java.sql.ResultSet; |
8 | 7 |
import java.sql.SQLException; |
... | ... | |
47 | 46 |
Class.forName(crate.driver); |
48 | 47 |
|
49 | 48 |
// The second way of the driver registration. |
50 |
//Driver driver = new com.mysql.cj.jdbc.Driver(); |
|
51 |
//DriverManager.registerDriver(driver); |
|
49 |
//DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver()); |
|
52 | 50 |
|
53 | 51 |
System.out.println("--- Connecting to the database ---".toUpperCase()); |
54 | 52 |
conn = DriverManager.getConnection(crate.url, crate.user, crate.password); |
Také k dispozici: Unified diff
re #7950
release pro zákazníka