Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Assignment-9
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Abdul Qadeer Farooqui
Assignment-9
Commits
5e42ef14
Commit
5e42ef14
authored
May 30, 2022
by
Muhammad Abdul Qadeer Farooqui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
c48f9266
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
StudentDao.java
src/main/java/com/qadeer/web/dao/StudentDao.java
+0
-2
UtilityDao.java
src/main/java/com/qadeer/web/dao/UtilityDao.java
+0
-3
No files found.
src/main/java/com/qadeer/web/dao/StudentDao.java
View file @
5e42ef14
...
@@ -16,8 +16,6 @@ public class StudentDao {
...
@@ -16,8 +16,6 @@ public class StudentDao {
ps
.
setInt
(
3
,
e
.
getAge
());
ps
.
setInt
(
3
,
e
.
getAge
());
status
=
ps
.
executeUpdate
();
status
=
ps
.
executeUpdate
();
con
.
close
();
con
.
isClosed
()
}
catch
(
Exception
ex
){
ex
.
getMessage
();}
}
catch
(
Exception
ex
){
ex
.
getMessage
();}
return
status
;
return
status
;
...
...
src/main/java/com/qadeer/web/dao/UtilityDao.java
View file @
5e42ef14
...
@@ -7,9 +7,6 @@ public class UtilityDao {
...
@@ -7,9 +7,6 @@ public class UtilityDao {
public
static
Connection
getConnection
(){
public
static
Connection
getConnection
(){
Connection
con
=
null
;
Connection
con
=
null
;
if
(
Connection
.){
}
try
{
try
{
Class
.
forName
(
"com.mysql.cj.jdbc.Driver"
);
Class
.
forName
(
"com.mysql.cj.jdbc.Driver"
);
con
=
DriverManager
.
getConnection
(
"jdbc:mysql://localhost:3306/mydb"
,
"root"
,
"root1234"
);
//
con
=
DriverManager
.
getConnection
(
"jdbc:mysql://localhost:3306/mydb"
,
"root"
,
"root1234"
);
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment