Skip to content

Commit acf6751

Browse files
author
Radovan Janjic
committed
bug fixes, performance improvement and removal of unnecessary parameter
1 parent aac174b commit acf6751

File tree

8 files changed

+284
-205
lines changed

8 files changed

+284
-205
lines changed

MySQL_wrapper.class.php

Lines changed: 133 additions & 135 deletions
Large diffs are not rendered by default.

example.php

Lines changed: 83 additions & 59 deletions
Large diffs are not rendered by default.

log-mysql.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,15 @@
33
2013-10-10 22:49:45 - QUERY -> EXEC -> 0.00292397 -> SHOW COLUMNS FROM `table`;
44
2013-10-10 22:49:45 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1
55
2013-10-10 23:06:34 - QUERY -> EXEC -> 0.00465322 -> SHOW COLUMNS FROM `table`;
6-
2013-10-10 23:06:34 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1
6+
2013-10-10 23:06:34 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 12014-01-14 10:38:47 - QUERY -> EXEC -> 0.00576305 -> SHOW COLUMNS FROM `table`;
7+
2014-01-14 10:38:47 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1 - CALL -> Function query in C:\xampp\htdocs\Git\PHP_MySQL_wrapper\example.php on line 438
8+
2014-01-14 10:56:39 - QUERY -> EXEC -> 0.00264287 -> SHOW COLUMNS FROM `table`;
9+
2014-01-14 10:56:39 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1 - CALL -> Function query in C:\xampp\htdocs\Git\PHP_MySQL_wrapper\example.php on line 436
10+
2014-01-14 11:01:57 - QUERY -> EXEC -> 0.00586295 -> SHOW COLUMNS FROM `table`;
11+
2014-01-14 11:01:57 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1 - CALL -> Function query in C:\xampp\htdocs\Git\PHP_MySQL_wrapper\example.php on line 442
12+
2014-01-14 11:07:40 - QUERY -> EXEC -> 0.00556517 -> SHOW COLUMNS FROM `table`;
13+
2014-01-14 11:07:40 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1 - CALL -> Function query in C:\xampp\htdocs\Git\PHP_MySQL_wrapper\example.php on line 442
14+
2014-01-14 11:08:43 - QUERY -> EXEC -> 0.00257492 -> SHOW COLUMNS FROM `table`;
15+
2014-01-14 11:08:43 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1 - CALL -> Function query in C:\xampp\htdocs\Git\PHP_MySQL_wrapper\example.php on line 442
16+
2014-01-14 11:12:48 - QUERY -> EXEC -> 0.00573015 -> SHOW COLUMNS FROM `table`;
17+
2014-01-14 11:12:48 - ERROR -> NO -> 1064 - DESC -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!@#$' at line 1 - CALL -> Function query in C:\xampp\htdocs\Git\PHP_MySQL_wrapper\example.php on line 441

test_files/test-1.txt

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1-
"id","firstname","surname","email","date"
2-
"2","Radovana","Janjic","rade@it-radionica.com","2013-12-21"
3-
"3","Radovan","Janjic'","rade@it-radionica.com","2012-11-04"
4-
"4","Radovan","Janjic","rade@it-radionica.com","2012-11-04"
5-
"5","Radovan","Janjic","rade@it-radionica.com","2012-11-04"
6-
"6","Radovan","Janjic","rade@it-radionica.com","2012-11-04"
1+
"id","firstname","surname","email","date","l","time","booking_number","departing"
2+
"1","foo","bar","rade@it-radionica.com","2014-01-14","0","2014-01-14 10:38:41","","0000-00-00"
3+
"2","Radovana","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 10:38:41","","0000-00-00"
4+
"3","Radovan","Janjic'","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
5+
"4","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
6+
"5","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
7+
"6","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
8+
"7","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
9+
"8","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
10+
"9","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
11+
"10","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
12+
"12","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 10:38:39","","0000-00-00"
13+
"13","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 10:38:39","","0000-00-00"
14+
"15","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 10:56:31","","0000-00-00"
15+
"16","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 10:56:31","","0000-00-00"
16+
"18","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 11:01:49","","0000-00-00"
17+
"19","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 11:01:49","","0000-00-00"
18+
"21","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 11:07:32","","0000-00-00"
19+
"22","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 11:07:32","","0000-00-00"
20+
"24","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 11:08:35","","0000-00-00"
21+
"25","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 11:08:35","","0000-00-00"
22+
"27","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 11:12:40","","0000-00-00"
23+
"28","Radovan","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 11:12:40","","0000-00-00"

test_files/test-2.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@
1111
"Radovan","Janjic"
1212
"Radovan","Janjic"
1313
"Radovan","Janjic"
14+
"Radovan","Janjic"
15+
"Radovan","Janjic"
16+
"Radovan","Janjic"
17+
"Radovan","Janjic"
18+
"Radovan","Janjic"
19+
"Radovan","Janjic"
20+
"Radovan","Janjic"
21+
"Radovan","Janjic"
22+
"Radovan","Janjic"
23+
"Radovan","Janjic"

test_files/test-3.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"firstname","surname","date"
2-
"foo","bar","2013-12-21"
3-
"Radovana","Janjic","2013-12-21"
2+
"foo","bar","2014-01-14"
3+
"Radovana","Janjic","2014-01-14"
44
"Radovan","Janjic'","2012-11-04"
55
"Radovan","Janjic","2012-11-04"
66
"Radovan","Janjic","2012-11-04"
@@ -9,5 +9,15 @@
99
"Radovan","Janjic","2012-11-04"
1010
"Radovan","Janjic","2012-11-04"
1111
"Radovan","Janjic","2012-11-04"
12-
"Radovan","Janjic","2013-12-21"
13-
"Radovan","Janjic","2013-12-21"
12+
"Radovan","Janjic","2014-01-14"
13+
"Radovan","Janjic","2014-01-14"
14+
"Radovan","Janjic","2014-01-14"
15+
"Radovan","Janjic","2014-01-14"
16+
"Radovan","Janjic","2014-01-14"
17+
"Radovan","Janjic","2014-01-14"
18+
"Radovan","Janjic","2014-01-14"
19+
"Radovan","Janjic","2014-01-14"
20+
"Radovan","Janjic","2014-01-14"
21+
"Radovan","Janjic","2014-01-14"
22+
"Radovan","Janjic","2014-01-14"
23+
"Radovan","Janjic","2014-01-14"

test_files/test-4.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"id","firstname","surname","email","date","l","time","booking_number","departing"
2+
"2","Radovana","Janjic","rade@it-radionica.com","2014-01-14","0","2014-01-14 10:38:41","","0000-00-00"
3+
"3","Radovan","Janjic'","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
4+
"4","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
5+
"5","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
6+
"6","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"

test_files/test-query2csv.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"id","firstname","surname","email","date","l","time","booking_number","departing"
2+
"3","Radovan","Janjic'","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"
3+
"4","Radovan","Janjic","rade@it-radionica.com","2012-11-04","0","2014-01-14 10:38:30","","0000-00-00"

0 commit comments

Comments
 (0)