Commit Graph

32 Commits

Author SHA1 Message Date
Hugues Peccatte
3363f10880 Rename ImportSQL method.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-20 21:06:17 +02:00
Hugues Peccatte
4b9058faa9 Manage escaped quotes.
Improve process not to look for the same thing many times.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-18 23:57:54 +02:00
Hugues Peccatte
d936df12d2 Manage option to read SQL as a multibytes string or not.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-18 20:31:54 +02:00
Hugues Peccatte
2da2c4caf6 Reduce size of data to read.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-12 18:51:02 +02:00
Hugues Peccatte
713a4ef901 Execute query.
Remove trace.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-12 18:45:43 +02:00
Hugues Peccatte
3f9b63f572 Improve SQL reading.
Remove trace.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-12 18:36:54 +02:00
Hugues Peccatte
5cfefb8f82 Fix comment read.
Improve loops.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-10 22:20:33 +02:00
Hugues Peccatte
389763e16e Test to parse SQL in a different way.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-08 22:15:40 +02:00
Hugues Peccatte
9ca79b379d Replace mb functions by standard string functions.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-05 14:15:42 +02:00
Hugues Peccatte
3de88162ff Replace PMA_String uses by mb_* calls.
Remove part of unused  variables.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-28 20:53:01 +02:00
Hugues Peccatte
73d376d14a Remove old @todo.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-20 20:17:44 +02:00
Hugues Peccatte
d510e19e77 Fix 14528: Fix SQL import.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-16 22:23:42 +02:00
Hugues Peccatte
e85eddb01f Fix #4528 Can't import dump via SQL field
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-13 23:10:57 +02:00
Hugues Peccatte
9b77d746ab Mass modifications to use PMA_String.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-06 10:44:03 +02:00
Michal Čihař
dca981481d Remove plugin manager and observer classes
We don't really need the observer pattern, so let's simplify the code.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-06-25 09:25:59 +02:00
Hugues Peccatte
e512768fce Fix coding style.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-04-18 18:51:04 +02:00
Hugues Peccatte
b61c12bff1 Fix coding style.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-04-18 10:19:58 +02:00
slimtim
f604be8bd2 When importing a SQL file convert carriage return (\r) line-endings to line feeds (\n) otherwise all queries in the file may not get executed on some platforms (e.g. Linux) 2013-11-20 21:44:48 -05:00
Michal Čihař
dc809d6a8d Properly use global offset variable 2013-07-10 14:53:04 +02:00
Michal Čihař
34dce1d3b4 Various coding style improvements 2013-06-11 16:27:31 +02:00
Madhura Jayaratne
650a8cdda3 Convert database interface to a class 2013-05-24 17:30:59 +05:30
Kasun Chathuranga
d933575811 PMA_DBI_try_query --> PMA_DBI_tryQuery 2013-04-30 23:05:18 +05:30
Madhura Jayaratne
c9f37be407 Add @subpackage tags 2012-10-28 18:27:38 +05:30
Michal Čihař
869d7c0e99 Use single quotes when we do not want to evaluate the string 2012-10-16 11:18:16 +02:00
Madhura Jayaratne
3711b57df6 Fix coding style 2012-09-01 07:29:48 +05:30
Alex Marin
45d6e21148 oop: properties for ImportSql 2012-07-30 15:18:48 +03:00
Alex Marin
02c37994c1 oop: properties for ImportCsv 2012-07-30 14:25:04 +03:00
Chanaka Indrajith
d5acfed0e8 Multiple results support for SQL executions 2012-07-20 23:13:04 +05:30
Alex Marin
f6c7bac2c7 oop: import - remove getters and setters for globals 2012-06-18 19:27:27 +03:00
Alex Marin
6d852da6c1 oop: fix phpcs errors for ImportSql, ImportXml and ImportPlugin 2012-06-18 16:53:45 +03:00
Alex Marin
4e93893b38 oop: ImportSql phpcs errors 2012-06-17 11:14:36 +03:00
Alex Marin
4e764e76b8 oop: camel caps for import plugins 2012-06-08 11:52:27 +03:00