Commit Graph

243 Commits

Author SHA1 Message Date
Michal Čihař
4dd524eaf1 Use ngettext for number of inserted rows. 2010-03-30 14:51:09 +02:00
Michal Čihař
9e345b4ab8 Use ngettext for number of affected rows. 2010-03-30 14:32:06 +02:00
Marc Delisle
bbad02a5a1 fit with new sql.php jQuery 2010-03-26 18:03:06 -04:00
Michal Čihař
201d0e892c Load mootools in every page. 2010-01-25 11:49:46 +00:00
Michal Čihař
d435827ba5 Whitespace cleanup. 2010-01-22 17:18:23 +00:00
Michal Čihař
65ea590395 rfe #2033616 [edit] Add option to just display insert query. 2010-01-21 14:12:18 +00:00
Michal Čihař
94c2f864ae [core] Remove config data from session as it brings chicken-egg problem.
Configuration data stores PmaAbsoluteUri, which should be accessible
before initiating session. Otherwise there is no way to make
PmaAbsoluteUri work. PmaAbsoluteUri is needed at least for reverse
proxy setups, for example http webserver running behind https proxy.
2010-01-21 11:18:18 +00:00
Michal Čihař
ca83c56f5d rfe #2823707 [edit] Call UUID function separately to show it in insert. 2010-01-21 11:01:13 +00:00
Michal Čihař
4c1d5e827a rfe #2924956 [interface] Add insert ignore option to editing row. 2010-01-13 13:50:24 +00:00
Michal Čihař
be5e0baab4 Do not use translated messages for values, rather use hardcoded strings.
This way we avoid possible breakage on language change.
2010-01-13 13:38:38 +00:00
Michal Čihař
78b00824eb [core] Updated mootools to fix some glitches with Safari.
Mootools are now in separate files as distributed upstream.
2010-01-04 15:35:23 +00:00
Marc Delisle
526dce65cb 3.3 2009-12-31 13:11:19 +00:00
Marc Delisle
f3833884e4 3.3 2009-12-31 13:09:18 +00:00
Marc Delisle
87b994743b primary_key is really a WHERE clause (that works also on tables where no PK is defined) 2009-12-30 15:27:27 +00:00
Marc Delisle
182c02c5e8 bug #2893221 [core] Statement may not be safe to log in statement format 2009-11-21 13:22:08 +00:00
Marc Delisle
869571ee16 optimize: use high-level function to fetch a single row 2009-07-16 12:21:21 +00:00
Marc Delisle
56defc1153 optimize: skip unneeded code in case BLOB streaming is not available 2009-07-16 11:51:09 +00:00
Marc Delisle
208a02fdcd optimizations 2009-07-15 10:07:24 +00:00
Marc Delisle
7967d17690 bug #2821757 [insert] "Insert another new row" no longer worked 2009-07-15 09:46:45 +00:00
Marc Delisle
7381ddfb27 bug #2816165 [display] Executed query not always displayed 2009-07-10 14:30:18 +00:00
Marc Delisle
55a516e39c patch #2745215 [edit] Multi-row change with "]" improved 2009-05-04 16:05:24 +00:00
Herman van Rink
ff0b627cc7 bug #2682140 UUID() and CURRENT_USER() should not accept arguments 2009-03-12 20:18:42 +00:00
Marc Delisle
0b498a58be patch #1760205 [data] Insert as new row: BLOB is lost 2009-02-23 08:36:34 +00:00
Marc Delisle
5a1df0684d patch #2602633 [core] support column name having square brackets 2009-02-20 09:37:49 +00:00
Marc Delisle
dd898010ba patch #2496403 [display] Multi-row change with "]" 2009-01-13 21:59:45 +00:00
Michal Čihař
84ae0420fe Adding @package, third part. 2008-11-24 11:22:44 +00:00
Michal Čihař
37315b0c79 Document some require/includes as phpdoc otherwise takes random block before to document it. 2008-11-24 10:02:56 +00:00
Marc Delisle
e77938bb20 BLOBstreaming support (Google Summer of Code 2008, Raj Kissu Rajandran) -- work in progress 2008-08-20 17:04:37 +00:00
Marc Delisle
2ac75d4591 upgrade to mootools 1.2; temporarily deactivate the color picker that does not work with this mootools version 2008-07-14 19:52:16 +00:00
Marc Delisle
b9baa825c1 display options (work in progress) 2008-05-21 15:49:57 +00:00
Marc Delisle
076ede089d unused variable 2008-05-18 15:53:27 +00:00
Sebastian Mendel
e5458c0799 do not use urlencode() in forms 2008-05-06 08:28:27 +00:00
Marc Delisle
6250cd0506 strRowsInserted 2007-10-19 11:40:27 +00:00
Marc Delisle
e9da128bc0 strRowsDeleted, strRowsAffected 2007-10-18 17:15:39 +00:00
Sebastian Mendel
107fc46ad9 make use of PMA_Message 2007-10-16 12:14:19 +00:00
Sebastian Mendel
1708f2ecdd make use of new message object 2007-10-10 14:31:42 +00:00
Sebastian Mendel
40b3ce9fd1 use array to define included JavaScript libraries 2007-10-04 09:22:50 +00:00
Marc Delisle
1df1e6b3c2 last fix for bug #1729583 2007-06-14 16:52:26 +00:00
Sebastian Mendel
fa30ac8c33 store browse state in session per query 2007-05-15 11:16:10 +00:00
Marc Delisle
501ba4a6b6 bug #1699532 Cause of data manipulation issues; still have to work on updating an ENUM value 2007-05-14 17:39:40 +00:00
Sebastian Mendel
573a6161bd fixed code indention 2007-05-09 12:18:57 +00:00
Marc Delisle
e3012401d4 insert a row if BLOB is empty 2007-03-31 12:19:02 +00:00
Sebastian Mendel
008734f8b0 do NEVER unset $table or $db;
no need to test for isset() on $db and $table;
always test with strlen() for valid $table or $db;
2007-03-30 09:12:05 +00:00
Marc Delisle
d298724fd4 Edit next row: do not offer if no unique key on table 2007-03-26 13:23:24 +00:00
Marc Delisle
04e26c61a9 bug #1681598 [interface] Edit next row 2007-03-25 13:06:33 +00:00
Sebastian Mendel
d0facc3d4f splitted common.lib.php into common.inc.php, core.lib.php and common.lib.php 2007-03-20 14:16:18 +00:00
Sebastian Mendel
817e790762 synced/fixed vim line 2007-03-19 17:55:39 +00:00
Marc Delisle
91093f0b25 bug #1680952 [core] undefined function PMA_getUvaCondition() 2007-03-15 17:22:18 +00:00
Marc Delisle
42ac66ad74 get rid of propicon 2007-02-10 15:58:46 +00:00
Sebastian Mendel
d3f335ac3d refactored:
made register_globals independent;
added documentation;
removed unused code;
fixed bug #1597686 last insert id message wrong;
and much more i don't remember ...
2006-12-19 16:54:29 +00:00
Marc Delisle
d01f9977fb remove uva prefix 2006-12-10 12:32:41 +00:00
Michal Čihař
cac4247057 Rename db_* files to drop useless _details part. 2006-10-25 12:25:01 +00:00
Michal Čihař
ad06b4a991 Rename tbl_* files to drop useless _properties part. 2006-10-25 10:55:20 +00:00
Michal Čihař
1491e4f83e Add support for UTC_DATE, UTC_TIME and UTC_TIMESTAMP functions, based on patch #1563585, thanks to Alexander Schuch - ci-dev. 2006-10-04 12:58:55 +00:00
Sebastian Mendel
1eadc0a41a use @todo tag for todo items, to show up in generated documentation 2006-09-21 14:28:46 +00:00
Marc Delisle
26019039ca bug #1438999 updating a multi-table view 2006-05-23 16:54:30 +00:00
Marc Delisle
48c548e515 bug #1255923, detect and report silent truncation (mysqli) 2006-04-09 11:01:41 +00:00
Marc Delisle
b8da992112 bug 1429074, go back to this page choice not sticky 2006-02-12 14:19:42 +00:00
Sebastian Mendel
0ae8842353 (not complete) PEAR coding standard 2006-01-17 17:03:02 +00:00
Sebastian Mendel
7358f5a712 allow 0 as name for database, table collumn, alias and index 2006-01-14 23:17:17 +00:00
Marc Delisle
3e02476635 add comments 2005-12-22 17:57:30 +00:00
Marc Delisle
8db1bbc4cf bug #1385974, cannot un-null a value 2005-12-20 21:31:05 +00:00
Sebastian Mendel
82572774cd define variables only where needed 2005-11-26 06:59:49 +00:00
Michal Čihař
6aeabf44d1 Move footer.inc.php, header.inc.php and header_printview.inc.php to libraries folder as it does not require direct access. 2005-11-24 09:12:17 +00:00
Michal Čihař
e040c424fa Move tbl_replace_fields.php to libraries folder as it does not require direct access. 2005-11-24 09:00:21 +00:00
Sebastian Mendel
fcf387bc70 common.lib.php should REALLY REALLY and ALWAYS be the first include 2005-11-18 12:50:49 +00:00
Marc Delisle
91870dadbe bug #1339184, MySQL 5 strict mode, errors inserting auto-increment fields 2005-11-03 18:24:15 +00:00
Michal Čihař
f1f39b8ed1 added infou about UFPDF to documentation 2004-12-29 14:16:51 +00:00
Michal Čihař
0e9ad7053e UNIX_TIMESTAMP can take optional parameter (bug #1039193). 2004-10-19 16:34:30 +00:00
Marc Delisle
ec0721f053 error uploading a binary field in mysqli 2004-08-21 13:06:26 +00:00
Michal Čihař
4b9ace4f66 Do not empty protected values (bug #1006812). 2004-08-11 13:45:31 +00:00
Michal Čihař
3c813982d1 Some functions do not take parameters (bug #1000021). 2004-08-06 15:29:50 +00:00
Alexander M. Turek
a95837729f yet another PMA_DBI_free_result() 2004-07-31 15:06:55 +00:00
Marc Delisle
5fb6e7976d PMA_securePath 2004-06-15 16:55:53 +00:00
Michal Čihař
1aaa89fa54 Little code reorganistaion (RFE #957308), removed some remaining php3 compatibility code in SQL parser. 2004-05-20 16:14:13 +00:00
Michal Čihař
72b3f91917 Use same code for generating INSERT and UPDATE queries (also fixes bug #953250). 2004-05-13 14:41:28 +00:00
Marc Delisle
c9bbf1e03f use PMA_sendHeaderLocation 2004-05-11 12:41:12 +00:00
Michal Čihař
0b9bdd62a7 Support for insert multiple rows at once (RFE #749733). 2004-05-05 10:05:30 +00:00
Marc Delisle
3315aacde9 bug 898484 IIS crash 2004-04-13 18:59:22 +00:00
Marcel Tschopp
a1417f09f0 bug 926986, code optimizations 2004-04-08 14:19:31 +00:00
Michal Čihař
1ead79a1bc New "Go back to this page" while editing. 2004-03-10 14:38:42 +00:00
Alexander M. Turek
2915b5c3ce Added MySQLi library; Removed calls to old mysql_wrappers library. 2004-01-22 02:13:48 +00:00
Marc Delisle
a7bd761f3f PMA_DBI_affected_rows 2004-01-20 21:03:31 +00:00
Marc Delisle
a69eb2ebbc PMA_DBI_insert_id 2004-01-20 20:52:28 +00:00
Garvin Hicking
2083c2b226 safer array-index checks 2003-12-15 21:40:22 +00:00
Marc Delisle
9d5504973a bug 857445, affected rows 2003-12-11 16:54:43 +00:00
Garvin Hicking
69cbb41a5c fixed(?) right bracketing 2003-12-11 12:45:44 +00:00
Garvin Hicking
56edf51600 Undefined indexes bug 2003-12-11 10:43:52 +00:00
Garvin Hicking
398b7a9f4a Editing of multiple records at once.
This is a hook-in to the 'delete multiple records' and basically just wraps all data in some kind of Ueber-Array. It should be compatible with single records editing. I tried various combinations already and it seems to work. But this can heavily break stuff, so expect this to be EXPERIMENTAL! We should only release RC1 after this has been thoroughly tested (will do so in the next days by myself).

What maybe needs fixing is the way of evaluating $goto/ $err_url and similars. As I am not much into that redirection stuff, maybe one can see if I did something wrong in the area.
2003-12-04 16:09:13 +00:00
Alexander M. Turek
37d50c1822 Huge set of optimizations, please test! 2003-11-26 22:52:25 +00:00
Garvin Hicking
8d1bfe6f3b Reverted some obfuscated RegExes. Nijel, as you where working on that: I removed the bugfixes you threw in for my faulty code because there where some issue left (for me):
The lines

$re0 = '@(^|(\\\\\\\\)+|[^\\\\])'; // non-escaped wildcards
$re1 = '@(^|[^\])(\\\)+'; // escaped wildcards

as they currently where made no sense to me, because the single [^\] should be replaced to [^\\\\] as well, doesn't it? To not seriously break more stuff I decided to revert to the previous mechanism here.

I will do more serious tests the next days and will actually work with my PMA again and I pay close attention to see if there are any issues left.

I also searched through the code to see if the setting of the array points from former while() constructs was in any way used [current(), next(), prev(), key(), end(), each()] but did find none.
2003-11-25 19:20:20 +00:00
Garvin Hicking
c2b46ac945 Final batch of PHP3-Compatibility fixes. Please test. :-) 2003-11-22 20:57:48 +00:00
Michal Čihař
6884f9701a no more support for php3 2003-11-18 15:20:45 +00:00