Commit Graph

57 Commits

Author SHA1 Message Date
Rouslan Placella
8f1aca4818 MySQL allows a function and a procedure with the same name in the same db. This case was unhandled. 2011-08-16 14:02:16 +01:00
Rouslan Placella
4e4456e9b8 Fixed wrong permission check for "Drop Routine" action 2011-08-16 12:36:38 +01:00
Rouslan Placella
39b0f4d34b Fixed wrong destination page on "Drop Routine" action 2011-08-16 12:35:43 +01:00
Michal Čihař
d48a7bc668 Another Start/End which might be confusing 2011-08-10 13:16:48 +02:00
Rouslan Placella
64ae406cfd Do not fetch views instead of filtering them out, when generating the trigger editor 2011-08-09 22:40:40 +01:00
Rouslan Placella
f6982bae84 Triggers don't work with views 2011-08-09 16:41:28 +01:00
Rouslan Placella
cccc78a98e Unified some localised strings for routines, triggers and events. 2011-08-09 16:32:47 +01:00
Rouslan Placella
46d0ea701f Select current table in editor when adding a trigger 2011-08-09 16:29:05 +01:00
Michal Čihař
60fdffbafa Merge remote-tracking branch 'rouslan/rte' 2011-07-22 11:56:33 +02:00
Michal Čihař
d55306252b Replace tabs with spaces, cleanup identation 2011-07-22 10:15:08 +02:00
Michal Čihař
3f8badd37f Replace tabs with spaces, cleanup identation 2011-07-22 09:53:41 +02:00
Rouslan Placella
eed246438e Merge branch 'master' into rte 2011-07-21 20:11:24 +01:00
Rouslan Placella
49b2ca984a No need to show a "table" column in the list of triggers, if a table is already selected. 2011-07-21 20:07:59 +01:00
Rouslan Placella
896519cf77 E_ALL fix 2011-07-21 14:52:30 +01:00
Rouslan Placella
47f4e0772d Better validation of parameter types when generating a CREATE ROUTINE query 2011-07-16 19:35:02 +01:00
Rouslan Placella
bdb3423bc9 Validate parameter direction when generating a CREATE PROCEDURE query 2011-07-16 19:34:17 +01:00
Rouslan Placella
d8b14b5dc7 Removed redundant whitespaces from CREATE ROUTINE query 2011-07-16 19:33:08 +01:00
Rouslan Placella
6d714e5d7d E_ALL fix when generating CREATE ROUTINE query from empty request 2011-07-16 19:32:29 +01:00
Rouslan Placella
28881e4f4a Simplified check for maximum number of routine parameters 2011-07-16 19:31:36 +01:00
Rouslan Placella
62859c653e Merge branch 'master' into rte
Conflicts:
	libraries/rte/rte_events.lib.php
	libraries/rte/rte_routines.lib.php
	libraries/rte/rte_triggers.lib.php
2011-07-15 20:41:58 +01:00
Marc Delisle
b44ece2949 Create a new is redundant 2011-07-14 09:20:34 -04:00
Rouslan Placella
526419d1a1 Renamed some functions to avoid conflicts of redefinition in unit tests 2011-07-14 13:57:05 +01:00
Rouslan Placella
f989d6f0cf Fixed handling of length/values for the return variable of functions 2011-07-14 13:06:31 +01:00
Rouslan Placella
0e622faed6 Removed redundant code from rte_routines.lib.php 2011-07-14 12:57:09 +01:00
Rouslan Placella
d3fa11c19b Move declarations of globals into functions, so that unit tests are possible 2011-07-13 18:42:10 +01:00
Rouslan Placella
02b32a14b5 PHP's in_array does not work on multidimential arrays 2011-07-13 12:29:02 +01:00
Rouslan Placella
8aad65b494 Moved some Routine functions around to match the order of Event and Trigger functions. 2011-07-12 17:14:32 +01:00
Rouslan Placella
fed169554a Swapped some inline styles for classes. 2011-07-12 14:52:36 +01:00
Rouslan Placella
6f0f522fcd Do not send 'name' and 'row' data in the AJAX request, if it will not be used because the trigger will not be inserted into the list. 2011-07-12 14:38:40 +01:00
Rouslan Placella
9898cf8609 Coding guidelines for routines. 2011-07-12 14:00:42 +01:00
Rouslan Placella
c8ec2dd8cb Coding guidelines for triggers. 2011-07-12 12:58:23 +01:00
Rouslan Placella
4df98e9e62 Coding guidelines for code common to Routines, Triggers and Events. 2011-07-12 12:02:12 +01:00
Rouslan Placella
262a27232e Coding guidelines for events. 2011-07-11 16:00:43 +01:00
Rouslan Placella
a4dd7561b0 SERIAL and BOOLEAN types have no length. 2011-07-11 12:28:09 +01:00
Rouslan Placella
125467978e Removed some pointless parameters from functions that handle the editing and execution of routines 2011-07-08 16:40:59 +01:00
Rouslan Placella
283bb10c35 More comments for functions that handle Routines, Triggers and Events 2011-07-08 16:36:20 +01:00
Rouslan Placella
612d6a1ff1 Standardized all "name" attributes for input fields of the Routines, Triggers and Events editors 2011-07-08 16:05:46 +01:00
Rouslan Placella
cae5bba400 Better filtering on generation of 'CREATE [ROUTINE|TRIGGER|EVENT]' queries. 2011-07-08 13:21:32 +01:00
Rouslan Placella
5a35754d0b Reverted to fetching lists by row instead of by cell, also implemented better control over some localized strings 2011-07-07 15:27:48 +01:00
Rouslan Placella
b3b7d45e78 Dropping useless rte_common.lib.php 2011-07-06 18:08:22 +01:00
Rouslan Placella
b03249f64a Do not export the delimiter for triggers 2011-07-06 18:01:51 +01:00
Rouslan Placella
6490a75c4e Fixed bug, where after deleting a table the Routines, Triggers and Events tabs stopped working. 2011-07-06 17:57:21 +01:00
Rouslan Placella
ccd1cc3f9e Simplified code for 'export' functionality of Routines, Triggers and Events 2011-07-06 14:29:46 +01:00
Rouslan Placella
d47e01e7ef Tabs -> Spaces 2011-07-05 16:06:37 +01:00
Rouslan Placella
7857a05de3 Removed pointless constant 'ITEM' 2011-07-05 16:04:08 +01:00
Rouslan Placella
9c11b373fb Added '---' to otherwise empty table cells in the routines editor. 2011-07-05 15:45:43 +01:00
Rouslan Placella
8e8a5e54f0 Bolded the labels in the editor for Routines, Triggers and Events 2011-07-05 14:48:40 +01:00
Rouslan Placella
e947712358 Do not insert not preserved events from the past into the list of events. Also use same logic for other items. 2011-07-05 12:53:49 +01:00
Rouslan Placella
15ad6605b1 Set 'maxlength' of input fields in HTML, instead of validating against a maximum length in JS. 2011-07-05 11:38:46 +01:00
Rouslan Placella
55d2358359 Factored out the JS for the editor of Routines, Triggers and Events and moved it into a namespace. 2011-07-05 11:30:22 +01:00