-
Type: Refactoring
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 4.3.9
-
Fix Version/s: 5.0.0
-
Component/s: Optimization
-
Labels:None
-
External issue URL:
-
External issue ID:124
-
Copy Issue Key:
-
Patch Instructions:
Improve database interaction code:
1. Method "kDBConnection::qstr" does the same as "mysql_real_escape_string" function, let's use it instead, it's faster. Also implement NULL value processing inside this method and not in all other places, as for now.
2. Eliminate usage of "eregi" and "ereg_replace" functions in kDBItem class.
3. Get rid of "sprintf" function usage in kDBItem class.
4. Return "null", when requested field is not present in kDBList class.