Khushboo Vashi
b49d625c2d
Don't depend on standards_conforming_strings being enabled. Fixes #3077
2018-02-21 17:18:00 +00:00
Khushboo Vashi
9a498c2877
Ensure column names on indexes on views are properly quoted in RE-SQL. Fixes #3066
2018-02-20 16:47:33 +00:00
Khushboo Vashi
c85e14dc25
Add missing reverse-engineered SQL header and drop statement for sequences. Fixes #3081
2018-02-19 11:41:19 +00:00
Joao Pedro De Almeida Pereira
15862e903a
Fix creation of tables and columns in GPDB. Fixes #3099
2018-02-19 10:40:10 +00:00
Joao Pedro De Almeida Pereira
e16a952753
Support EXPLAIN on Greenplum. Fixes #3097
...
- Extract SQLEditor.execute and SQLEditor._poll into their own files and add test around them
- Extract SQLEditor backend functions that start executing query to their own files and add tests around it
- Move the Explain SQL from the front-end and now pass the Explain plan parameters as a JSON object in the start query call.
- Extract the compile_template_name into a function that can be used by the different places that try to select the version of the template and the server type
2018-02-09 11:54:42 +00:00
Navnath Gadakh
db92907fe9
Fix quoting of function names in RE-SQL. Fixes #3060
2018-02-09 10:15:41 +00:00
Dave Page
4d69764869
Don't quote variable values used by SET. It's usually going to be wrong. Fixes #3027
2018-02-02 14:58:29 +01:00
Harshal Dhumal
2042f89ce0
Don't include sizes on primitive datatypes that shouldn't have them when modifying columns. Fixes #3052
2018-02-01 16:27:36 +01:00
Joao Pedro De Almeida Pereira
de1c767e88
Update the regression tests to fix issues with Python 3.5 and PG 9.2. Fixes #3057
2018-01-26 16:45:09 +00:00
Joao Pedro De Almeida Pereira
7c985695b7
Correct display of RE-SQL for partitioned tables in Greenplum. Fixes #3050
2018-01-25 12:37:17 +00:00
Joao Pedro De Almeida Pereira
65337daeba
Display functions in Greenplum. Fixes #3044
2018-01-23 11:10:46 +00:00
Joao Pedro De Almeida Pereira
678699c408
Display partitions in Greenplum. Fixes #3036
2018-01-23 10:41:36 +00:00
Joao Pedro De Almeida Pereira
284adbbb90
Correctly display SQL of multiple objects on the SQL tab in GPDB.
2018-01-22 11:04:49 +00:00
Joao Pedro De Almeida Pereira
56e922f5ab
Support Properties on Greenplum databases. Fixes #3015
2018-01-15 14:44:40 +05:30
Murtuza Zabuawala
8520871bc6
Monitor connection and transaction status in the query tool. Fixes #2475
2018-01-12 14:34:39 +00:00
Joao Pedro De Almeida Pereira
ed3e374df6
Support server and database statistics on Greenplum. Fixes #3004
2018-01-12 10:02:46 +00:00
Ashesh Vashi
c32eb6bd37
Fixed the warnings/errors reported by eslint for all the static
...
javascripts.
2018-01-12 13:00:14 +05:30
Dave Page
89821c0d19
Update copyright notices for 2018.
2018-01-05 10:42:50 +00:00
Khushboo Vashi
711fbd5144
Allow use of transition tables in PG 10 triggers. Fixes #2933
2018-01-03 16:25:03 +00:00
Murtuza Zabuawala
0810c681c3
Ensure the switch animation is consistent on the table dialogue and avoid displaying an error incorrectly. Fixes #2624
2018-01-03 15:32:44 +00:00
Khushboo Vashi
49dfd6fe31
Ensure invalid options can't be selected on triggers on views. Fixes #2945
2018-01-03 14:32:00 +00:00
Khushboo Vashi
e64bc2a821
Show complete SQL for FTS dictionaries. Fixes #2949
2018-01-03 13:16:11 +00:00
Khushboo Vashi
107795db10
Ensure column collation isn't lost when changing field size. Fixes #2779
2017-12-13 15:44:10 +00:00
Murtuza Zabuawala
c5d1fc8189
Ensure the datatype cache is updated when a domain is added. Fixes #2778
2017-12-13 15:17:17 +00:00
Khushboo Vashi
0c5a5ba9c2
Add support for editing data in tables with OIDs but no primary keys. Fixes #2849 .
...
This patch also updates the editor to retrieve all row values on save, thus immediately showing default values and allowing subsequent editing without a refresh.
2017-12-13 10:28:31 +00:00
Navnath Gadakh
035c134fed
Cleanup properly after running the Foreign Table test cases.
2017-11-28 09:44:28 +00:00
Navnath Gadakh
80c4a3fb1a
Use sufficiently long random strings in test objects to avoid conflicts.
2017-11-27 12:01:50 +00:00
Murtuza Zabuawala
dd8e2fe8a6
Quote the owner name when creating types. Fixes #2787
2017-11-21 11:32:27 +00:00
Murtuza Zabuawala
5fd3a7dd3d
Display relevant error messages when access is denied creating a schema. Fixes #2094
2017-11-20 13:31:03 +00:00
Khushboo Vashi
88cd68c2b9
Add an option to manually count rows in tables to render the properties. Fixes #2846
2017-11-07 20:27:10 -05:00
Alexander Lakhin
187ab22d90
Further missing translation fixes. Stats now:
...
1481 of 1831 messages (80%) translated in pgadmin/translations/de/LC_MESSAGES/messages.po
1694 of 1831 messages (92%) translated in pgadmin/translations/ja/LC_MESSAGES/messages.po
1748 of 1831 messages (95%) translated in pgadmin/translations/pl/LC_MESSAGES/messages.po
1750 of 1831 messages (95%) translated in pgadmin/translations/ru/LC_MESSAGES/messages.po
1436 of 1831 messages (78%) translated in pgadmin/translations/zh/LC_MESSAGES/messages.po
2017-11-06 19:49:20 -05:00
Chethana Kumar
2be418706d
Updated colours of tree view icons, which is to be more comfortable in identifying.
2017-11-06 13:03:03 +05:30
Alexander Lakhin
f15f46592a
Tag some translations that were not, well, tagged. Current stats:
...
1481 of 1777 messages (83%) translated in pgadmin/translations/de/LC_MESSAGES/messages.po
1694 of 1777 messages (95%) translated in pgadmin/translations/ja/LC_MESSAGES/messages.po
1472 of 1777 messages (82%) translated in pgadmin/translations/pl/LC_MESSAGES/messages.po
1750 of 1777 messages (98%) translated in pgadmin/translations/ru/LC_MESSAGES/messages.po
1436 of 1777 messages (80%) translated in pgadmin/translations/zh/LC_MESSAGES/messages.po
2017-11-05 08:32:26 -05:00
Dave Page
b2186db562
Revert "Fix a number of cases where strings were not properly marked for translation."
...
This reverts commit 1f23838a4c
due to unintended side
effects it caused - specifically, expanding Databases on the treeview displayed
Servers again
2017-11-03 16:45:20 +00:00
Alexander Lakhin
1f23838a4c
Fix a number of cases where strings were not properly marked for translation.
2017-11-03 13:10:42 +00:00
Khushboo Vashi
f73ce2dfc3
Ensure estimated rows are included correctly in CREATE script for functions. Fixes #2651
2017-11-02 09:47:31 +00:00
Murtuza Zabuawala
897bf4857a
Fix counted rows display in table properties. Fixes #2836
2017-11-02 09:35:44 +00:00
Alexander Lakhin
23d431fb54
Remove more exclamation marks from error messages.
2017-11-01 15:18:07 +00:00
Alexander Lakhin
9be1364d1a
Various string improvements and fixes.
2017-11-01 12:58:19 +00:00
Dave Page
890fece73a
Fix check constraint regression tests.
2017-10-16 16:01:07 +01:00
Murtuza Zabuawala
784f3f59d8
Fix name of 'check-constraints' to follow the usual singular convention.
2017-10-16 15:40:15 +01:00
Chethana Kumar
62c9376546
Improve icon alignment.
2017-09-22 14:29:34 +01:00
Akshay Joshi
bdc08d94c4
Fix View Data option and column config for Foreign Tables. Fixes #2691
2017-09-18 14:32:17 +01:00
Murtuza Zabuawala
8bededa859
Fix disable trigger menu option. Fixes #2707
2017-09-18 12:37:59 +01:00
Murtuza Zabuawala
9cfb2f3cbe
Fix filtering of system schemas so pg_* is hidden but pg* is not. Fixes #2709
2017-09-15 13:50:06 +01:00
Chethana Kumar
ff79dfc186
Update cast icons with improved design.
2017-09-13 10:43:39 +01:00
Chethana Kumar
3779c36d0f
Update server and database icons with a clearer design.
2017-09-13 09:59:07 +01:00
Murtuza Zabuawala
80ce889c3d
Fix an issue in User mapping module where users were not listed. Fixes #2693
2017-09-13 09:53:25 +01:00
Murtuza Zabuawala
5891bda06a
Fix an issue where base types are not displaying in the create/edit domain dialog, also corrected the condition to show hidden system types. Fixes #2692
2017-09-13 09:52:16 +01:00
Chethana Kumar
f79b7f26b1
Using the svg icons for domain constraint, and server browser nodes.
2017-09-11 18:24:04 +05:30
Ashesh Vashi
ac2512799e
Rename the SecurityGroupUnderSchema to SecurityGroupSchema, and
...
redefined in the database (instead of schema) javascript module, as it
is also used by the foreign-server node too.
Reported by: Neel Patel
2017-09-11 13:13:40 +05:30
Ashesh Vashi
8c8c0e78ca
Miscellaneous fixes for icon sizing issue, missing tree nodes to be
...
webpacked, etc.
- Fixed the background-size for the svg icons to 20x20 px such that it
does not adjust it's size when a context menu height is different due
to length of the node label, also - it allows us to fix the issue of
icons sizes in the Grant Wizard.
- Added two missing browser tree nodes in the webpack configuration
i.e. Foreign Server, and User Mapping
- Removed a redundant javascript file foreign-server.js
- Fixed the missing context menu icons for Foreign Table, and Tablespace
nodes.
Thanks EDB development team to find the regression added after the icon
changes in quick time.
2017-09-11 12:55:42 +05:30
Ashesh Vashi
4018562bc7
Changes in the stylesheets to support the svg icons for the browser
...
tree nodes.
2017-09-11 11:22:55 +05:30
Chethana Kumar
23a00f9614
Replacing existing browser tree node png icons with the svg icons. Made
...
it compatible with the pgAdmin 4 color combination.
TODO::
Icons for the following nodes are in PNG format.
- Domain Constraint (Only the invalid icon)
- pgAgent Job Steps
- Green Plum database server
- Server (Only server.png, which is used in the create/edit dialog)
2017-09-11 11:17:31 +05:30
Murtuza Zabuawala
8d248dab4c
Fix quoting of index column names on tables. Fixes #2619
2017-09-07 16:36:35 +01:00
Dave Cramer
eae6f0427c
Fix display of types in GPDB.
2017-08-31 09:57:27 +01:00
Murtuza Zabuawala
52840d68a8
Fix RE-SQL for triggers with a single arg. Fixes #2668
2017-08-31 09:39:09 +01:00
Teng Zhang
821442ed8f
GPDB compatibility fixes:
...
When connected to a Greenplum database server
- Hide items that not work with GPDB, such as Triggers, FDW, FTS_*, etc
- Tables/Views/Catalogs/Language node can expand correctly
- Views/Languages/Catalogs can show properties dialog with correct information
- Show a greenplum icon at the server node
Teng Zhang & Hao Wang
2017-08-30 11:18:14 +01:00
Teng Zhang
46c5df4e7b
Greenplum specific DDL and Dashboard display changes.
...
Initial patch by Sarah McAlear<smcalear@pivotal.io>.
2017-08-25 17:53:03 +05:30
Murtuza Zabuawala
d3babd78aa
Fixes #2560 - View is not fully qualified in Trigger definition.
2017-08-25 17:45:20 +05:30
Navnath Gadakh
bd04cfaaa8
Properly cleanup after running the FTS test cases.
2017-08-25 09:32:46 +01:00
Akshay Joshi
fe6e4686a2
Unable to add/update variables for columns of a table. Fixes #2659
2017-08-23 17:11:30 +05:30
Atul Sharma
e6223c9a49
Fixes #2567 - Use the proper database connection to fetch the default
...
prileges in the properties tab of the database.
Reviewed by: Murtuza Zabuawala
2017-08-18 09:15:57 +05:30
Murtuza Zabuawala
2c6c4a16ce
Use dict based data instead of 2d-array in Type module as we are adding keys on the fly.
...
Reviewed By: Harshal Dhumal
2017-08-17 13:07:39 +05:30
Khushboo Vashi
c4ca781ce2
Fixed some UX issue with the Import/Export tool.
...
- Couldn't click on the filename control once gets an error.
- Encoding is not in alphabetical order.
2017-08-09 16:52:43 +05:30
Ashesh Vashi
845025db8f
Some cosmetic changes.
...
- Loading 'pgadmin' as 'sources/pgadmin', as found under the 'sources'
reference directory to be consistent with other files.
- Removed the 'pgadmin' reference from the base.html template.
- Renamed 'pgadmin.slickgrid.editors.js', and
'pgadmin.slickgrid.formatters.js' as 'editors.js', and 'formatters.js'
respectively, as they're already in the 'pgadmin/static/js/slickgrid'
directory.
- Removed the duplicate entry of 'translations' from the webpack.shim.js
2017-08-09 16:52:12 +05:30
Murtuza Zabuawala
bebfc62721
Fixed collation tests on Windows, replace use of default 'POSIX' collation with 'C' collation for testing. Fixes #2501
2017-08-03 16:46:20 +05:30
Murtuza Zabuawala
6717aff8f5
Domain create dialog do not open and Font size issue in Security label control. Fixes #2616
2017-08-01 16:37:17 +05:30
Akshay Joshi
e506fa1dbe
Improved alertify notification logic. Remove AlertifyWrapper class and extend notification methods in alertify itself.
2017-07-31 18:59:44 +05:30
Akshay Joshi
a7f58e2b92
1) Added partition module in webpack config.
...
2) Fixed missing logic of partition from primary_key.js and unique_constraint.js as this two files are newly created for webpack.
3) Changed the node name from 'check_constraint' to 'check_constraints'. Also changed the same in test case url.
2017-07-31 18:25:04 +05:30
Surinder Kumar
6d5417709c
Moved the javascripts of different modules from 'templates' to 'static' directory.
...
Moving the javascripts for the following modules:
- About
- Browser nodes
- Dashboard
- FileManager
- Vendor/snap.svg
- Preferences
- Settings
- Backup
- Datagrid
- Debugger
- Sqleditor
- Grant Wizard
- Import & Export
- Maintenance
- Restore and
- User Management
2017-07-27 17:25:08 +05:30
Atul Sharma
70418144cf
Add a field to the Server Dialogue allowing users to specify a subset of databases they'd like to see in the treeview. Fixes #1918
2017-07-21 12:44:57 +01:00
Murtuza Zabuawala
acaa79cf6b
Fix disconnection of new databases. Fixes #2594
2017-07-21 11:11:03 +01:00
Akshay Joshi
4d4da67247
Fix regressions introduced by PG10's partitioning code. Fixes #2043 . Fixes #2324 .
2017-07-20 12:49:40 +01:00
Surinder Kumar
dfa877262d
Webpacking cleanups
2017-07-19 15:03:21 +01:00
Murtuza Zabuawala
bab3da24e6
Support SSL in the regression tests. Fixes #2170
2017-07-18 15:23:11 +01:00
Surinder Kumar
6396b8ce18
Add missing new files from the previous commit. Ooops.
2017-07-18 15:14:59 +01:00
Surinder Kumar
4a91bcde30
Webpack all the things! Fixes #2135
...
This significantly speeds up loading of the application; in an average of 3 tests, v1.6
loaded in 11.5s in the runtime on a Mac, whilst the webpacked version of the code
loaded in 5.53s.
2017-07-18 15:13:17 +01:00
Harshal Dhumal
3942461c50
Correct for malformed query generated when using custom type. Fixes #2544
2017-07-17 11:14:34 +01:00
Harshal Dhumal
07aa74eaf5
Show tablespace on partitions. Fixes #2551
2017-07-17 09:50:18 +01:00
Akshay Joshi
f06c3578f6
Fix drop/drop cascade for partitioned tables. Fixes #2550
2017-07-10 16:02:32 +01:00
Akshay Joshi
ed3cb7df41
Handle partitioned tables created "OF TYPE". Fixes #2545
2017-07-10 14:16:30 +01:00
Harshal Dhumal
d151bdb4cd
Fix handling of CREATE TABLE OF <type>. Fixes #2534
2017-07-07 16:34:33 +01:00
Murtuza Zabuawala
acd3568f06
Fix the formatting of the ROWS option for functions etc. Fixes #2537
2017-07-07 15:57:43 +01:00
Akshay Joshi
e793413d76
Fixed issue by adding extra check for 'relkind' column
2017-07-07 12:33:58 +05:30
Akshay Joshi
c2fb0394bf
Added support of Declarative Partitioning (Range, List) for PostgreSQL 10.
...
This allows the user to create partitioned table and it's partitions.
- Edit partitions, Create/Listing of constraints, rules, triggers under partitions. (Implemented by Harshal)
- Updating browser tree node when create/attach/detach partitions from table dialog.(Implemented by Ashesh)
2017-07-07 11:55:55 +05:30
Khushboo Vashi
66b101fe4c
Resolve a number of issues with domains and domain constraints. Fixes #2529
2017-07-04 11:52:58 +01:00
Murtuza Zabuawala
0aa763b706
Remove unnecessary whitespace from stored procedure SQL. Fixes #2146
2017-07-03 16:32:19 +01:00
Murtuza Zabuawala
5c7dcaba81
Allow debugging of functions in packages. Fixes #1948
2017-07-03 16:30:12 +01:00
Joao Pedro De Almeida Pereira
2a30a86e7d
Update alertify alerts to use the styling defined in the styleguide.
2017-06-30 10:21:05 +01:00
Khushboo Vashi
d4e77deda4
Ensure revoked public privileges are displayed in the RE-SQL for functions. Fixes #2507
2017-06-26 07:50:39 -04:00
Murtuza Zabuawala
7a4945ff9e
Fix removal of sizes from column definitions. Fixes #2155
2017-06-23 09:42:46 +01:00
Murtuza Zabuawala
137bae1b04
Ensure default values are honoured when adding/editing columns. Fixes #1860
2017-06-22 12:11:02 +01:00
Ashesh Vashi
d26337a1ba
Moved the javascripts of the following browser node modules to the
...
'static' directory from 'templates' in the respective module directory:
- Server Group
- Server
- Database
- Schema
- Cast
- Event trigger
- Extension
- Foreign data wrapper
- Language
- Catalog Object
- Collation
- Domain Constraint
- Domain
- Foreign server
- FTS Configuration
- FTS Dictionary
- FTS Parser
- FTS Template
- Function
- Procedure
- Trigger Function
- Package
- Sequence
- Catalog
- Schema
- Synonym
- Table
- Type
- Materialized View
- View
- pgAgent Modules
+ Job (pga_job)
+ Schedule (pga_schedule)
+ Steps (pga_jobstep)
Added new dynanic modules for listing the supported server types, and
current user information.
NOTE: We've not yet moved the javascripts for the children of the table
module.
2017-06-22 15:58:32 +05:30
Murtuza Zabuawala
b9f6fb9545
Update MatView and pgAgent modules to work with recent integer/numeric changes. Fixes #2504
2017-06-21 17:03:43 +01:00
Murtuza Zabuawala
b9736cbd74
Handle missing/dropped synonyms gracefully. Fixes #2503
2017-06-21 16:59:43 +01:00
Khushboo Vashi
16a15bf934
Fix the fix for RM2324.
2017-06-13 09:18:44 +01:00
Murtuza Zabuawala
c435d48885
Properly handle trigger functions with parameters. Fixes #2043
2017-06-12 13:19:49 +01:00
Atul Sharma
49cd578816
Fix error on the stats tab with PG10. Also, rename the 10.0_plus template directory to 10_plus to match the new versioning. Fixes #2450
2017-06-12 12:53:09 +01:00
Khushboo Vashi
8bd8ae001b
Fix the PostGIS Datatypes in SQL tab, Create / Update dialogues for Table, Column, Foreign Table and Type node. Fixes #2324
...
Note that this doesn't add full support for PostGIS types to the table/column dialogues, which still can't handle the typmod usage. It does bring support to parity with pgAdmin 3 though.
2017-06-12 12:49:17 +01:00
Ashesh Vashi
fd3ddbeafb
Implementation of the client side 'url_for(...)' function.
...
Created a url_for function module to be used by different javascript
modules to use the same functionality of flask at client side.
A python module can expose the list of endpoints, used by its
javascripts, by overriding the 'get_exposed_url_endpoints(self)'
function.
In this patch, we have modified all the browser modules to use this
function. It will allow us to move the majority of the javascript
modules of browser nodes from templates directory to the static
directory.
TODO::
- Move these javascripts modules to the static directory.
- Use this function in all the applicable javascript modules.
e.g. tools, miscellaneous modules
2017-06-12 12:01:25 +05:30
Harshal Dhumal
aa400cbc12
Fix integer/numeric validation on various dialogues. Fixes #2421
2017-06-08 14:59:26 +01:00
Sarah McAlear
01bfa88309
Improvements to the Query Results grid:
...
- Improve the UI
- Allow copy/paste from sets of rows, columns or arbitrary blocks of cells
Patch by Matt, Shruti, Joao and Sarah @ Pivotal
Fixes #2476
2017-06-08 13:31:36 +01:00
Surinder Kumar
63c093248d
Allow users to remove default values from columns properly. Fixes #2461
2017-06-07 14:33:28 +01:00
Murtuza Zabuawala
495a3cedb0
List packages in PPAS 9.2-9.4 when creating synonyms. Fixes #1813
2017-06-07 13:44:36 +01:00
Khushboo Vashi
b134ae2cb4
Fix the RE-SQL for for views to properly qualify trigger function names. Fixes #2381
2017-06-07 13:40:11 +01:00
Ashesh Vashi
ae80976689
Using the client-side translation using the client-side 'gettext'
...
implementation.
This is the first step towards 'Avoid creating the javascript modules
using Jinja templates'.
2017-06-07 15:53:05 +05:30
Murtuza Zabuawala
9803468a77
Properly display security labels on EPAS 9.2+. Fixes #1575
2017-06-06 11:46:49 +01:00
Murtuza Zabuawala
cd3484d936
Make $ quoting consistent. Fixes #1525
2017-06-06 11:40:25 +01:00
Murtuza Zabuawala
bf06d82870
Fix validation for external and range types. Fixes #1795
2017-06-06 11:24:10 +01:00
Murtuza Zabuawala
e6aa3e1494
Fix default values and SQL formatting for event triggers. Fixes #1229
2017-06-06 11:19:40 +01:00
Dave Page
4c2004d479
Correct the validation logic when modifying indexes/exclusion constraints. Fixes #2113
2017-06-06 11:15:51 +01:00
Murtuza Zabuawala
4b74a5ff35
Enable dialogue help buttons on Language and Foreign Table dialogues. Fixes #2116
2017-06-06 09:52:44 +01:00
Murtuza Zabuawala
0bc9997a95
Properly refresh the parent node when renaming children. Fixes #2355
2017-06-06 09:50:05 +01:00
Dave Page
9e98ded06c
Display and allow toggling of trigger enable/disable status from the trigger dialogue. Fixes #2386
2017-06-05 17:11:21 +01:00
Murtuza Zabuawala
3f150f3f4e
Handle procedure flags (IMMUTABLE STRICT SECURITY DEFINER PARALLEL RESTRICTED) properly in RE-SQL on EPAS. Fixes #2280
2017-06-05 17:04:55 +01:00
Murtuza Zabuawala
2c9af4784e
Allow creation of ENUM types with no members. Fixes #2426
2017-05-26 12:21:23 -04:00
Murtuza Zabuawala
45d423c0ce
Ensure the last placeholder is included when generating UPDATE scripts for tables. Fixes #2436
2017-05-26 10:59:09 -04:00
Murtuza Zabuawala
a45bb905f5
Pass the database ID to the query tool when using the Script options. Fixes #2435
2017-05-26 10:57:31 -04:00
Murtuza Zabuawala
e9da157cc7
Add numerous missing checks to ensure objects really exist when we think they do. Fixes #2427
2017-05-25 16:28:04 -04:00
Dave Page
04ce72a6ae
Fix RE-SQL for rules which got the table name wrong in the header and DROP statement. Fixes #2422
2017-05-19 12:21:29 +01:00
Murtuza Zabuawala
a3226b1eb5
Reverse engineer SQL for table-returning functions correctly. Fixes #1851
2017-05-17 15:49:56 +01:00
Murtuza Zabuawala
655d5888a6
Various FTS dictionary cleanups. Fixes #1126
2017-05-17 14:13:05 +01:00
Murtuza Zabuawala
2ad14b379e
Validate table presence in SQL and Properties route handles. Fixes #2395
2017-05-15 10:15:09 +01:00
Joao Pedro De Almeida Pereira
3bf17d9df4
1) Splits the SQL query used to retrieve the Dependents, Dependencies, and Roles SQL file into multiple versioned files.
...
2) Add Unit Tests for each file.
3) Add ORDER BY into Copy Selection Feature test to ensure the results are retrieved always in the same order
4) Renamed the Scenario of the xss_checks_pgadmin_debugger_test and skip it for versions less than 9.1
5) Deleted unused __init__.py files.
2017-05-15 10:40:46 +05:30
Surinder Kumar
4f9628ed43
Improve handling of nulls and default values in the data editor. Fixes #2257
2017-05-12 10:53:57 +01:00
Murtuza Zabuawala
94cbd70370
Don't change the trigger icon back to "enabled" when the trigger is updated when it's disabled. Fixes #2271
2017-05-10 09:48:21 +01:00
Murtuza Zabuawala
9452e0699e
Allow creation of tables with pure numeric names. Fixes #2284
2017-05-10 09:40:32 +01:00
Khushboo Vashi
94b7fc483a
Fix sorting of sizes on the statistics views by sorting raw values and prettifying on the client side. Includes Jasmine tests for the prettyfying function. Fixes #2315
2017-05-08 11:29:13 +01:00
Murtuza Zabuawala
95f763463f
Fix an issue in NodeAjaxControl caching with cache-node field and add cache-node field in Trigger & Event trigger node so that whenever the user creates new Trigger Function we get new data from server in NodeAjaxControl. . Fixes #2242
2017-05-04 16:02:28 +01:00
Murtuza Zabuawala
6790bfd0c0
Fixed handling of default parameters ordering in functions. Fixes #2350
2017-04-25 18:40:44 +05:30
Akshay Joshi
a449be784e
Initial support for PG 10.0, per #2214 (missed some files)
2017-04-24 13:56:01 +01:00
Akshay Joshi
59834fba31
Initial support for PG 10.0, per #2214
2017-04-24 13:55:29 +01:00
Khushboo Vashi
8d6add13c0
Order foreign table columns correctly. Fixes #2318
2017-04-18 14:37:30 +01:00
Akshay Joshi
0d566a6f3a
Changed switch label from True/False to Show/Hide for 'Package Functions' and 'Package Procedures' node in Preferences dialog.
2017-04-14 14:57:38 +05:30
Navnath Gadakh
62716c4193
Include passed test results in the JSON output from the regression tests.
2017-04-12 13:11:53 +01:00
RAJASEKAR G
024b97479d
Recover properly if a database is renamed externally. Fixes #2077
2017-04-10 11:09:01 +01:00
RAJASEKAR G
3880bc7eb8
Fix validation on the table dialogue so the Save button isn't enabled if the name is removed and autovac custom settings are enabled. Fixes #2105
2017-04-06 09:56:52 +01:00
Jonas Thelemann
b8566a0127
Un-split some strings for translateability. And so begins the battle between gettext and pep8...
2017-04-05 15:05:11 +01:00
Jonas Thelemann
ddfa934357
Unified usage of "definition incomplete".
2017-04-05 13:55:00 +01:00
Jonas Thelemann
37120bf199
(De)Capitalized strings to fit the common/usual format, corrected spelling, removed unnecessary characters.
2017-04-05 13:50:49 +01:00
Jonas Thelemann
65f21a8cd7
Replace all occurrences of "can not" with "cannot".
2017-04-05 13:38:14 +01:00
Aravindraja Thinakaran
bb0bd8acc5
Properly handle truncated table names (> NAMEDATALEN). Fixes #2277
2017-04-01 02:57:48 -04:00
Jonas Thelemann
c391696054
Remove some unnecessary line breaks causing problems with translations.
2017-03-26 20:26:58 -04:00
Dave Page
6152d73f13
Fix some code inspection complaints
2017-03-25 22:04:52 -04:00
Dave Page
d205550b53
Fix Python 3 compatibility.
2017-03-23 13:43:24 +00:00
Atira Odhner
10920404e1
Re-organised the regression directory now we have multiple test suites: move test_utils.py into python_test_utils/
2017-03-23 11:59:31 +00:00
Atira Odhner
77007996ed
Support generation of DDL for tables in Greenplum DB. Fixes #2261
2017-03-23 11:40:06 +00:00
Atira Odhner
0ba0b25290
Move foreign key templates into a default directory.
2017-03-23 11:13:06 +00:00
Murtuza Zabuawala
145983d544
Add miissing braces to reverse engineered SQL header block for Functions. Fixes #2246
2017-03-17 12:48:58 +00:00
Atira Odhner
4464be6f43
Fix a typo and remove an unnecessary copy of the column properties template.
2017-03-17 10:02:52 +00:00
Dave Page
b2a74ad26d
Fix a bunch of file headers.
2017-03-16 14:27:55 +00:00
Dave Page
18d465e7bc
Fix some messages and update the Polish translation from Begina Felicysym
2017-03-09 09:23:19 +00:00
Dave Page
fb44ffffa0
Fix a couple of translation issues, and remove the test French translation files.
2017-03-08 10:13:15 +00:00
Jonas Thelemann
c34f5fd2d4
Use "could not" consistently, instead of "couldn't" which was used in some places.
2017-03-07 10:29:54 +00:00
Harshal Dhumal
ffa8d94e76
Better handling the non-ascii characters for different database objects.
...
Using 'psycopg2.extensions.UNICODE' (for Python < 3) in the psycopg2
driver for proper conversation of unicode characters. Also - adjusted
the string typecaster to take care of different character types (char,
character, text, name, character varying, and their array types).
Reviewed by: Dave Page, Murtuza Zabuawala & Akshay Joshi
2017-03-02 15:09:28 +05:30
Dave Page
59c6be534d
Typo fixes.
2017-03-01 12:49:15 +00:00
Khushboo Vashi
ddb8bad201
Fix Sequence ACL SQL for PG 9.3/9.2.
2017-03-01 12:46:58 +00:00
Navnath Gadakh
1f935d699e
Testsuite fixes for 9.3 and 9.2 support.
2017-02-28 14:22:10 +00:00
Harshal Dhumal
b961b2d929
Fix function arguments when generating create SQL. Fixes #2198
2017-02-24 12:42:25 +00:00
Khushboo Vashi
0ba9b7db43
Add PARALLEL SAFE|UNSAFE|RESTRICTED support. Fixes #2089
2017-02-24 12:21:05 +00:00
Harshal Dhumal
685b1ea12f
Fix renaming of check constraints when the table name is changed at the same time. Fixes #2201
2017-02-24 10:44:43 +00:00
Harshal Dhumal
5e33fe4e95
Properly handle event trigger functions in different schemas. Fixes #2200
2017-02-24 10:40:11 +00:00
Dave Page
03f292ce51
Tidy up the regression test output a little.
2017-02-16 11:40:54 +00:00
Surinder Kumar
833629d438
Fix exclusion constraint reverse engineered SQL. Fixes #2115
2017-02-16 10:54:21 +00:00
Surinder Kumar
cbaad81f00
Correct node labels in Preferences for EDB functions and procedures. Fixes #2126
2017-02-16 10:47:28 +00:00
Dave Page
ae10da4371
Another Python 3.x compatibility fix.
2017-02-13 10:27:16 +00:00
Dave Page
14f181d2ba
Fix Python 3 compatibility.
2017-02-13 10:07:38 +00:00
Atira Odhner
ec9e8b79a3
Basic support for viewing tables in Greenplum. Patch from George & Tira @ Pivotal.
2017-02-13 10:02:20 +00:00
Murtuza Zabuawala
6887920295
Ensure FTS parsers and templates are removed prior to creating them when testing.
2017-02-09 12:05:55 +00:00
Murtuza Zabuawala
c34fdaf37d
Fix the issue with Jinja conditions in Foreign Data Wrappers, Foreign Servers, User Mapping.
...
I also did some re-formatting & re-factoring to code to remove all the duplicate code.
2017-02-09 12:05:09 +00:00
Murtuza Zabuawala
c96da34c28
Fix handling of "char" columns. Fixes #2152
2017-02-06 10:59:03 +00:00
Murtuza Zabuawala
3ea8a7b211
Fix column addition regression test.
2017-02-06 09:46:34 +00:00
Murtuza Zabuawala
bf8c3c4180
Handle sized time/timestamp columns correctly. Fixes #2076
2017-02-03 14:51:58 +01:00
Khushboo Vashi
f2ac6fc6a7
1) Wrong tablespace displayed in table properties. Fixes #2069
...
2) Message (Connection to the server has been lost.) displayed with Materialized view and view under sql tab. Fixes #2139
2017-02-03 16:13:07 +05:30
Murtuza Zabuawala
2d442da9ff
Properly handle setting comments and other options on databases with allowconn = False. Fixes #2024
2017-02-01 10:23:45 +00:00
George Gelashvili
6d05302ca1
Rename the 9.1_plus templates to "default" to more appropriately support Greenplum which is based on 8.3.
2017-02-01 09:57:49 +00:00
Murtuza Zabuawala
e8f0cf6d94
Resolve various trigger issues. Fixes #2015
...
- Allow changing of row/statement flag
- When user update any of the parameter - trigger gets disappear from browser tree. To make it visible user has to do refresh.
- Edit Mode - 'Row level' trigger was not allowed to edit for "inline edb-spl" trigger function, even though "Row Trigger" is enabled.
- SQL was not generated properly when user change 'Row Trigger', Fires and events.
- Edit Mode - Fires and Events should be allowed to edit for "inline edb-spl" function mentioned with Code in description.
- Edit Mode - For trigger, if user edit parameters like Fires, Events, Code, Row trigger etc. then new OID is getting generated so we should fetch and return new OID in response rather then old trigger OID.
2017-01-30 13:05:15 +00:00
George Gelashvili
19be3529f8
Create a template loader for SQL templates.
...
This will automatically find the correct version of a template for the server version, and allows us to remove templates that were previously duplicated for different server versions.
Patch by George & Tira at Pivotal. Review by me and Murtuza from EDB.
Discussion: https://www.postgresql.org/message-id/flat/CAHowoHaU9_pkCt%2B1g8dpY3hsXXZmsJZiJH-3-_Hd%2BC1MxiGhtA%40mail.gmail.com#CAHowoHaU9_pkCt+1g8dpY3hsXXZmsJZiJH-3-_Hd+C1MxiGhtA@mail.gmail.com
2017-01-30 11:25:03 +00:00
Surinder Kumar
e01cf748ea
Enable/disable NULLs and ASC/DESC options for index columns and exclusion constraints appropriately. Fixes #2061 . Fixes #1840 .
2017-01-25 13:21:39 +00:00
Murtuza Zabuawala
29a6f2e124
Fix Reset Statistics operation for which the popup messages weren't displaying correctly. Fixes #2091
2017-01-24 10:19:33 +00:00
Dave Page
801c7688a3
A little message cleanup.
2017-01-24 10:18:30 +00:00
Dave Page
ac4178233b
Revert "Handle comments on databases with datallowconn=False correctly. Fixes #2024 "
...
This reverts commit e431eb9d8e
.
2017-01-20 13:21:05 +00:00
Murtuza Zabuawala
28621999f2
Improve display of columns of exclusion contraints and foreign keys in the properties lists. Fixes #2065
2017-01-17 10:25:26 +00:00
Murtuza Zabuawala
e431eb9d8e
Handle comments on databases with datallowconn=False correctly. Fixes #2024
2017-01-16 15:42:25 +00:00
Murtuza Zabuawala
4c19f93b3b
Use the correct OID for retrieving properties of freshly created exclusion constraints. Fixes #1896
2017-01-09 15:05:22 +05:30
Khushboo Vashi
01b2288d57
Ensure columns with types that are not in pg_catalog are handled properly in the table dialog.
2017-01-09 08:05:51 +05:30
Navnath Gadakh
1325b30e0b
Various improvements to the regression tests, notably avoiding use of signals unavailable on Windows.
2017-01-08 18:48:04 +05:30
Neel Patel
2787c5c207
Reset the column list properly if the access method is changed on an index to ensure error handling works correctly. Fixes #2009
2017-01-08 15:27:58 +05:30
Murtuza Zabuawala
879a6bef53
Fix keyboard control of switches in the column grid. Fixes #1394
2017-01-08 15:27:58 +05:30
Dave Page
fe9bdc62a1
Fix copyright notices.
2017-01-04 13:35:38 +00:00
Dave Page
f221194bcc
Update copyright notices for 2017.
2017-01-04 13:33:32 +00:00
Khushboo Vashi
1d571902da
Fix regression when generating SQL for new databases, caused by an invalid check of datallowconn introduced in the fix for #1801 .
2016-12-16 13:12:12 +00:00
Murtuza Zabuawala
1431dfcb01
Show index columns in the correct order in RE-SQL. Fixes #1842
2016-12-16 11:59:37 +00:00
Khushboo Vashi
81841cdb3c
Treat databases with datallowconn=false appropriately. Fixes #1801
2016-12-09 11:59:13 +00:00
Anthony DeBarros
6ff2fe64b8
Fix various mis-spellings of VACUUM. Fixes #2005
2016-12-08 10:35:53 +00:00
Neel Patel
54e6336a58
Deal with Function arguments correctly in the properties dialogue. Fixes #1979
2016-11-25 10:55:10 +00:00
Murtuza Zabuawala
66b9e22d01
Handle the template property on databases appropriately. Fixes #1800
2016-11-25 10:11:40 +00:00
Murtuza Zabuawala
6e5126d571
Add newly created triggers to the treeview. Fixes #1747
2016-11-18 13:58:35 +00:00
Khushboo Vashi
6567669798
Ensure the check_option is only set when editing views when appropriate. Fixes #1924
2016-11-18 13:44:43 +00:00
Murtuza Zabuawala
00d2ab0338
Cast OIDs to oid not int, otherwise we lose half the range which results in objects not being accessible. Fixes #1951
2016-11-11 14:36:41 +00:00
Murtuza Zabuawala
f405cdf383
Ensure trigger function names are schema qualified in trigger RE-SQL. Fixes #1949
2016-11-11 13:46:06 +00:00
Navnath Gadakh
7b574b284d
Fix TypeError.
2016-11-10 12:48:38 +00:00
Murtuza Zabuawala
36c909b1f9
Generate mSQL for new schemas correctly. Fixes #1937
2016-11-09 15:13:17 +00:00
Murtuza Zabuawala
c345adaa52
Properly format arguments passed by triggers to functions. Fixes #1912
2016-11-09 15:00:35 +00:00
Murtuza Zabuawala
a3622a380a
Fix display of exclusion contraint dependencies. Partially fixes #1892 - requires icon display fix.
2016-11-01 11:35:09 +02:00
Murtuza Zabuawala
ca57323ad1
Properly schema qualify domains when reverse engineering SQL. Fixes #1865
2016-10-28 16:45:06 +01:00
Murtuza Zabuawala
67e5dfa5a7
Fix refreshing of Unique constraints. Fixes #1893
2016-10-28 16:40:27 +01:00
Murtuza Zabuawala
8c48be3b0c
Properly quote role names when specifying function ownership. Fixes #1899
2016-10-28 16:18:31 +01:00
Dave Page
c1c2fb9df9
Ensure sequence start value is shown in SQL and properties list. Fixes #1155
2016-10-24 09:27:16 +01:00
Harshal Dhumal
2952faab5e
Fix exclusion constraint support on 9.6. Fixes #1875
2016-10-21 16:14:19 +01:00
Surinder Kumar
23a0fc2f22
Fix refreshing of FTS Dictionaries. Fixes #1837
2016-10-21 16:07:45 +01:00
Surinder Kumar
8e9108e0f3
Allow package bodies to be dropped. Fixes #1867
2016-10-21 15:24:11 +01:00
Harshal Dhumal
aef508ff91
Properly quote type names in RE-SQL for tables. Fixes #1863
2016-10-21 14:43:57 +01:00
Surinder Kumar
406dab069d
Show security labels in the reverse engineered SQL for domains. Fixes #1574
2016-10-21 12:49:50 +01:00
Murtuza Zabuawala
d29ccea299
Don't allow setting of security labels on edbspl stored procedures (by correctly checking the node type). Fixes #1576
2016-10-21 12:37:47 +01:00
Navnath Gadakh
1908e86d22
Resolve a PG 9.6 compatibility issue in the regression test for Languages.
2016-10-21 12:24:26 +01:00
Surinder Kumar
48ee8490f0
Add new indexes to the correct parent on the treeview. Fixes #1880
2016-10-21 12:12:37 +01:00
Surinder Kumar
06039320b9
Don't specify ASC/DESC options for index types that don't support them. Fixes #1840
2016-10-21 12:08:41 +01:00
Harshal Dhumal
6874a1a247
Properly generate exclusion constraint SQL. Fixes #1861
2016-10-21 12:04:30 +01:00
Akshay Joshi
76fb831554
Fixed issue where some parameter like 'Volatility, LeakProof , Variables etc..' not visible in SQL definition for functions and trigger functions.
2016-10-20 19:07:51 +05:30
Dan Vianello
6c5d81b6f5
Fixes #1843 Function definition does not match value returned from pg_get_functiondef()
2016-10-20 18:30:43 +05:30
Priyanka Shendge
c4f1b8eb11
Add tests for Languages
2016-10-18 14:36:25 +01:00
Dave Page
8d2dff1482
Always create databases from template0 when running regression tests, to ensure consistency and avoid concurrency issues.
2016-10-18 11:57:31 +01:00
Surinder Kumar
11e486f96d
Fix unsafe schema lookups for types. Fixes #1728
2016-10-18 11:32:43 +01:00
Surinder Kumar
dd6a69d845
Handle reverse engineering of synonyms with / in the name. Fixes #1622
2016-10-14 16:01:55 -07:00
Akshay Joshi
2d39b5fb41
Identify the collation correctly when reverse engineering table SQL. Fixes #1847
2016-10-14 15:57:55 -07:00
Surinder Kumar
c7520cf86d
Allow refreshing of synonym nodes. Fixes #1845
2016-10-14 15:50:20 -07:00
Surinder Kumar
17bd379cb6
Properly quote names when renaming FTS dictionaries and templates. Fixes #1857
2016-10-14 12:23:10 -07:00
Surinder Kumar
0df968f679
Resolve issue with properties refreshing. Fixes #1728
...
1) If we create/update a node with non-default schema, It should return selected schema id in return response. but default schema id is returned every time due to which it throws error in properties panel.
Fixed in Domains, Collation, Types, Views & Table node.
2) Incorrect parent id of object node is returned from nodes method due to which wrong parent id is passed while updating object and
thus node didn't get refreshed.
Fixed in FTS Configuration, FTS Parser nodes.
2016-10-14 12:19:00 -07:00
Navnath Gadakh
404d4efd2e
Add test cases for tables, types, views and their children.
2016-10-14 11:20:51 -07:00
Priyanka Shendge
22dadacb0f
Add terst cases for packages, and update Synonym cases for recent API changes.
2016-10-14 10:59:36 -07:00
Priyanka Shendge
540c389d92
Add regression tests for Foreignb Tables.
2016-10-13 06:57:16 -07:00
Priyanka Shendge
8b91babdc2
Add regression tests for FTS nodes.
2016-10-13 06:54:23 -07:00
Harshal Dhumal
713c692ddd
Fix View privilege management. Fixes #1531
...
1. Fixed update privileges for views and materialized views.
2. Apart from this fixed wrong sql for privilege update.
3. Fixed: Error message was not got cleared even after removing entry with error on privilege tab.
2016-10-10 09:42:22 +01:00
Navnath Gadakh
ae612f5403
Major update to the test suite:
...
1. Code changes (due to drop objects functionality).
2. Quoting for database names in drop databases.
3. Code changes for import errors for pickle_path and advanced_config variables.
2016-10-07 13:59:43 +01:00
Murtuza Zabuawala
c931d715ac
Fix refresh of Synonyms. Fixes #1611
2016-10-07 12:08:19 +01:00
Dave Page
a91f19a21d
Fix typo. Fixes #1596
2016-09-30 10:36:39 +01:00
Dave Page
49ee8abb72
Fix typo
2016-09-30 09:45:14 +01:00
Dave Page
f9dacc5237
Fix label cpaitalisation
2016-09-26 15:04:47 +01:00
Ashesh Vashi
912eebb583
Fix view creation. Fixes #1736
2016-09-26 11:00:18 +01:00
Dave Page
f51d8c72ef
Fix validation message
2016-09-26 10:57:16 +01:00
Ashesh Vashi
6999249dcd
Ensure the default schema is set when creating objects. Fixes #1735
2016-09-26 10:15:23 +01:00
Ashesh Vashi
1c623c56e7
Fixes#1737 - Setting the schedma-id as the pid (parent-id) for the
...
sequences node instead of the server-id.
Due to this - during updating the sequence node, it was not able to find
out the correct parent node, and it was updating the existing node, but
- later it (considering the old node) was removed by the replace logic.
2016-09-24 14:25:16 +05:30
Murtuza Zabuawala
a113b43a1f
Add Packages as a synonym target type. Fixes #1611
2016-09-22 14:56:00 +01:00
Navnath Gadakh
1cb5a7c7ca
Update regression tests to resolve issues where database/connections were getting mixed up.
2016-09-22 12:58:38 +01:00
Navnath Gadakh
c84fd83595
Enhanced summary output for the test suite.
2016-09-19 16:49:06 +01:00
Murtuza Zabuawala
2440f89a71
Fix an issue where the edit icon vanished and the default tab wasn't shown when advanced-editing a column in the table dialogue. Fixes #1704
2016-09-19 15:37:04 +01:00
Surinder Kumar
cc0cb83277
Resolve a syntax error when updating packages with no body. Fixes #1588
2016-09-19 15:33:19 +01:00
Murtuza Zabuawala
82d63804c1
Resolve a refresh issue when updating packages. Fixes #1625
2016-09-19 09:41:13 +01:00