Aditya Toshniwal
59446bb4b5
Ensure JSON data isn't modified in-flight by psycopg2 when using View/Edit data. Fixes #3600
2019-02-25 10:34:36 +00:00
Khushboo Vashi
34045efb38
Modify the Download as CSV option to use the same connection as the Query Tool its running in so temporary tables etc. can be used. Fixes #3673
2019-02-20 11:49:45 +00:00
Aditya Toshniwal
292ac32db5
Fix editing of table data with a JSON primary key. Fixes #3912
2019-02-20 11:15:39 +00:00
Ashesh Vashi
eb3d3980e0
Use 'set_config(...)' function to update the 'bytea_output' settings
...
instead of 'UPDATE' statement, which is not allowed in the the read-only
instances.
Reported by: Robert J. Rotter
Solution provided by: Tom Lane
Fixes #3973
2019-02-08 10:18:32 +05:30
Akshay Joshi
22d458b01e
Close connections gracefully when the user logs out of pgAdmin. Fixes #3942
2019-02-06 13:17:52 +00:00
Cyril Jouve
b786c4c140
Replace the PyCrypto module with the cryptography module. Fixes #3272
2019-01-31 15:57:27 +01:00
Cyril Jouve
cbd8f8236a
Remove Python 2.6 code that's now obsolete. Fixes #3935
2019-01-31 13:47:56 +01:00
Murtuza Zabuawala
d9fc9fdc4d
Ensure object names in external process dialogues are properly escaped. Fixes #3872
2019-01-24 16:34:18 +00:00
Diego Augusto Molina
d92368f8e5
Use 'UPDATE pg_settings' for setting bytea_output as a
...
convenience hack for those running on old, unsupported versions of
PostgreSQL 'cos we're nice like that.
2019-01-22 15:56:29 +00:00
Dave Page
14f462e9dc
Fix PEP-8 issues.
2019-01-11 22:13:17 +05:30
Aditya Toshniwal
d641b47adb
Make the browser more robust in the face of multibyte characters in SQL_ASCII databases. Fixes #3877
2019-01-11 21:55:49 +05:30
Akshay Joshi
c455dda3ce
Ensure auto complete should works for columns from a schema-qualified table. Fixes #3810
2019-01-03 18:59:57 +05:30
Akshay Joshi
3a130d68c5
Ensure auto complete should works when first identifier in the FROM clause needs quoting. Fixes #3809
2019-01-03 17:22:42 +05:30
Murtuza Zabuawala
e23d307c56
Update copyright notices for 2019
2019-01-02 15:54:12 +05:30
Akshay Joshi
41c028f944
Ensure that null values handled properly in CSV download. Fixes #3780
2019-01-01 15:15:36 +05:30
Khushboo Vashi
e666b0fab0
Fix an issue that could cause the Query Tool to fail to render. Fixes #3433
2018-12-13 11:15:55 +00:00
Dave Page
980d1e0292
Fix PEP8 issue.
2018-12-04 17:07:41 +00:00
Khushboo Vashi
7e3bd8b88a
Fix an encoding issue in the query tool. Fixes #3711
2018-12-04 17:03:19 +00:00
Akshay Joshi
eae18f6f14
Ensure previous notices are not removed from the Messages tab in the Query Tool if an error occurs during query execution. Fixes #3016
2018-11-14 08:27:47 -05:00
Akshay Joshi
6bc6bc7f60
Ensure that Utilities(Backup/Restore/Maintenence/Import-Export) should not be started
...
if binary path is wrong and also added 'Stop Process' button to cancel the process.
2018-10-22 12:35:53 +05:30
Akshay Joshi
370df47042
Fixed issue where session files are not deleted first time when pgAdmin4 server started,
...
it always wait for CHECK_SESSION_FILES_INTERVAL which is 24 hours by default.
2018-10-18 18:02:45 +05:30
Harshal Dhumal
822d384746
Purge connections from the cache on logout. Fixes #3703
2018-10-17 12:42:41 +01:00
Harshal Dhumal
ce31726af5
Fix connection garbage collector. Fixes #3700
2018-10-17 12:35:45 +01:00
Akshay Joshi
ef0e53e8fc
Fixed pep8 issue
2018-10-15 17:41:21 +05:30
Akshay Joshi
fd2c2c4ff7
Fixed minor issue in SQL autocomplete.
2018-10-15 17:36:11 +05:30
Akshay Joshi
7144db7f5a
Cleanup session files periodically. Fixes #3674
2018-10-09 11:34:13 +01:00
Akshay Joshi
15fe26a710
Fix handling of backslashes in the edit grid. Fixes #3551
2018-09-25 10:34:33 -04:00
Aditya Toshniwal
38ddea038a
Fix support for the CLOB datatype in EPAS. Fixes #3596
2018-09-13 13:45:06 +01:00
Akshay Joshi
4010dc80a9
Ensure auto-complete works for objects in schemas other than public and pg_catalog. Fixes #3630
2018-09-11 12:56:14 +01:00
Akshay Joshi
b665f8fac8
Fixed auto complete issue for EPAS database server.
2018-08-30 12:30:00 +05:30
Aditya Toshniwal
ea787b30eb
Fixed auto complete issues for Python 2.6
2018-08-27 16:37:00 +05:30
Akshay Joshi
7a3f3046df
Merge pgcli code with version 1.10.3, which is used for auto complete feature.
2018-08-27 15:00:56 +05:30
Harshal Dhumal
013ad7446f
Make the session thread safe.
...
As sessions in pgAdmin4 are filesystem based session, they need locking
for avoiding the access from multiple threads, specially running as an
WSGI application.
Fixes #3547
2018-08-22 11:58:27 +05:30
Usman Muzaffar
70c95fcdd5
Stabilise feature tests for continuous running on CI systems. Fixes #3136 .
2018-08-21 17:39:36 +05:30
Akshay Joshi
c8c5f83dfe
Add support to save and clear SSH Tunnel password. Fixes #3511
2018-08-06 15:56:46 +05:30
Akshay Joshi
52fc0846cd
pgAdmin4 should work with python 3.7, Fixes #3458
2018-08-06 15:35:03 +05:30
Akshay Joshi
213cb440d0
Add support for SCRAM password changes (requires psycopg2 >= 2.8). Fixes #2214
2018-07-23 15:03:44 +01:00
Akshay Joshi
051ce6afeb
Ensure the SSH tunnel port number is honoured. Fixes #3471
2018-07-19 10:52:16 +01:00
Akshay Joshi
ce768c7f8a
Support SSH tunneling with keys that don't have a passphrase. Fixes #3468
2018-07-18 14:15:05 +01:00
Akshay Joshi
1fc82d328c
Fix backup in directory format on Windows.
2018-07-17 13:04:28 +01:00
Aditya Toshniwal
d1784137a5
Ensure text is visible in the SQL Filter dialogue. Fixes #3478
2018-07-09 14:08:41 +01:00
Aditya Toshniwal
82d77c4608
Don't create a session when the /misc/ping test endpoint is called. Fixes #3371
2018-07-05 11:12:03 +01:00
Dave Page
4ba0e1a6f3
Fix Python 2.6 support for SQL_ASCII data in the query tool.
2018-06-21 17:06:28 -04:00
Aditya Toshniwal
df85392bbf
Fix handling of SQL_ASCII data in the query tool. Fixes #3289 . Fixes #3250
2018-06-21 08:26:01 -04:00
Akshay Joshi
7a06acb678
Allow the connection timeout to be configured on a per-server basis. Fixes #3388
2018-06-19 19:58:46 -04:00
Akshay Joshi
b48145f01f
Add an option to auto-complete keywords in upper case. Fixes #2686
2018-06-15 10:18:56 +01:00
Akshay Joshi
88a2309a26
Fix auto-complete. Fixes #3374
2018-06-13 15:53:21 +01:00
Khushboo Vashi
d1ecba56b8
Function and procedure support for PG11. Fixes #3362
2018-06-13 15:03:17 +01:00
Akshay Joshi
38ee39ae7a
Add support for LISTEN/NOTIFY in the query tool. Fixes #3204
2018-05-30 21:58:28 -04:00
Akshay Joshi
17977d5d0e
Fix dropping of databases over SSH tunneled connections. Fixes #3357
2018-05-28 17:37:24 -04:00
Akshay Joshi
b7fb01ab04
Add support for SSH tunneled connections. Fixes #1447
2018-05-04 11:27:27 +01:00
Anthony Emengo
56658a9f8e
Fix the template loader to work reliably under Windows (fixing external tables under Greenplum). Fixes #3324
2018-05-03 15:54:15 +01:00
Joao Pedro De Almeida Pereira
201f6d359f
Cleanup some old code that was failing CI.
2018-04-26 16:21:46 +01:00
Joao De Almeida Pereira
2ace6a60f3
Fixed display SQL of table with index for GreenPlum database. Fixes #3306
2018-04-25 12:36:41 +05:30
Murtuza Zabuawala
79edf40141
Fix password encryption/decryption on Python 3.
2018-04-11 13:45:59 +01:00
Dave Page
163cadc279
Revert "Fix non-ASCII password decryption/encryption under Python 3"
...
This reverts commit d0a640442c
.
Seems to anger Python 2.7
2018-04-10 17:12:14 +01:00
Murtuza Zabuawala
d0a640442c
Fix non-ASCII password decryption/encryption under Python 3
2018-04-10 16:50:43 +01:00
Murtuza Zabuawala
be055ce57d
Update Python and JS modules. Fixes #3154
2018-04-04 10:47:01 +01:00
Akshay Joshi
1baddd5e9a
Decode the severity field in database exception objects properly. Fixes #3090
2018-03-26 13:59:49 +01:00
Akshay Joshi
637f3b9d1a
Fix a number of broken connection detection scenarios.
2018-03-21 08:38:18 +00:00
Khushboo Vashi
534f1f35fe
Appropriately set the cookie path. Fixes #3197
2018-03-19 17:09:19 +00:00
Dave Page
93d44d5643
Revert "Ensure the cookie domain and path are properly set. Fixes #3197 "
...
This reverts commit 9c4edb4a28
.
Jenkins really doesn't like this.
2018-03-15 14:54:14 -04:00
Khushboo Vashi
9c4edb4a28
Ensure the cookie domain and path are properly set. Fixes #3197
2018-03-15 13:59:29 -04:00
Joao Pedro De Almeida Pereira
876ce1799a
Skip tests where appropriate on GPDB. Fixes #3190
...
Victoria & Joao @ Pivotal.
2018-03-13 15:32:35 -04:00
Dave Page
156b308fd3
Fix template paths for Windows. Fixes #3139
...
Joint work from Joao and Murtuza.
2018-03-13 12:45:14 -04:00
Dave Page
9365ab62fe
Revert "Fix template path generation for Windows. Fixes #3139 "
...
This reverts commit 695d4e648c
.
It's borked!
2018-03-13 08:49:34 -04:00
Murtuza Zabuawala
695d4e648c
Fix template path generation for Windows. Fixes #3139
2018-03-13 07:55:37 -04:00
Murtuza Zabuawala
03b772bf64
Add support for connecting using pg_service.conf files. Fixes #3140
2018-03-12 16:45:56 -04:00
Khushboo Vashi
d3c303e455
Ensure all messages are retrieved from the server in the Query Tool. Fixes #3094
2018-03-07 13:38:27 +00:00
Khushboo Vashi
a4124c2496
PEP8 fixes.
2018-03-02 09:37:11 +00:00
Murtuza Zabuawala
a9de043fef
Add keyboard shortcuts for the Query Tool. Fixes #2900
2018-02-27 14:32:03 +00:00
Dave Page
bcdb8eb275
Revert "Ensure we pick up the messages from the current query and not a previous one. Fixes #3094 "
...
This reverts commit 08b3ccc01a
.
It was found that this fix inadvertently re-introduces #1523
2018-02-26 16:32:53 +00:00
Khushboo Vashi
08b3ccc01a
Ensure we pick up the messages from the current query and not a previous one. Fixes #3094
2018-02-26 14:19:43 +00:00
Murtuza Zabuawala
fa9aebadbd
PEP8 fixes.
2018-02-26 13:54:58 +00:00
Harshal Dhumal
05e91044c7
Fix intermittent specified_version_number ValueError issue on restart. Fixes #2983
...
Now we try to restore server details like server version number at restart so template paths can be resolved.
2018-02-20 17:31:13 +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
Murtuza Zabuawala
25647c16ba
Ensure we capture notices raised by queries. Fixes #3027
2018-02-02 15:23:33 +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
Harshal Dhumal
e0da9c5a0c
Significantly improve connection loss detection and handling in the query tool. Fixes #2815
2018-02-01 14:29:18 +01:00
Murtuza Zabuawala
c3ddb7df38
PEP8 fixes for the utils module. Fixes #3076
2018-01-31 13:58:55 +00:00
Harshal Dhumal
66341e6947
Add infrastructure for managing configurable keyboard shortcuts.
2018-01-25 12:49:06 +00:00
Joao Pedro De Almeida Pereira
678699c408
Display partitions in Greenplum. Fixes #3036
2018-01-23 10:41:36 +00:00
Dave Page
89821c0d19
Update copyright notices for 2018.
2018-01-05 10:42:50 +00:00
Murtuza Zabuawala
1dd1c10255
Do not decrypt the password when the password is 'None'. Fixes #2765
...
This should avoid the common but harmless exception "ValueError: IV must be 16 bytes long while decrypting the password."
2018-01-03 13:19:58 +00:00
Murtuza Zabuawala
4246a3b22f
Ensure password changes are successful if authenticating using a pgpass file. Fixes #2720
2017-12-13 13:28:07 +00:00
Harshal Dhumal
55254a649f
Re-hash the way that we handle rendering of special types such as arrays. Fixes #2782 . Fixes #2822 .
2017-12-13 11:53:27 +00:00
Murtuza Zabuawala
fe7cfa35df
Attempt to decode database errors based on lc_messages. Fixes #2806 . Fixes #2821
2017-11-27 11:53:25 +00:00
Khushboo Vashi
4568fe22f7
Decode the field separator and quote char if needed.
2017-11-20 16:28:13 +00:00
Khushboo Vashi
0c566f132e
Allow configuration of CSV and clipboard formatting of query results. Fixes #2781
2017-11-20 13:50:47 +00:00
Murtuza Zabuawala
2579458091
Fix support for time without timezone. Fixes #2881
2017-11-20 13:36:50 +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
Alexander Lakhin
8860bc3c3e
Saved user language was not being picked up in case of non-server mode.
...
Because - the get_locale(...) function was being executed before any
request, and user login after first request. Hence - the values for
the labels in the Preferences are not being translated properly.
Fetch the raw value of user_language from configuration in case of
runtime/non-server mode to fix the issue.
2017-10-30 18:20:41 +05:30
Harshal Dhumal
04beec1309
Fix various issues that could cause an exception on startup. Fixes #2713
2017-10-10 09:50:47 +01:00
Murtuza Zabuawala
2f5a2b2392
Only allow specification of a pgpass file if libpq >= 10. Fixes #2768
2017-10-10 09:31:27 +01:00
Murtuza Zabuawala
f855ed88ce
Allow selection of SSL certificates and pgpass files in connection properties. Fixes #2649 . Fixes #2650
2017-09-28 10:02:33 +01:00
Murtuza Zabuawala
2ddbddba33
Improve display of error messages in the query tool. Fixes #2700
2017-09-20 11:29:24 +01:00
Harshal Dhumal
f0ad26ba7a
Fix for Exception when the server is restarted. Fixes #2713
...
This issue was caused because we recently added session_write_delay in session.
So session won't be written/updated to disk from memory until specified seconds are elapsed.
However we must forcefully write/update session to disk if user loges in or out irrespective of session_write_delay to keep sessions from memory and disk in sync as user logged in status is kept in session.
2017-09-18 14:39:43 +01:00
Harshal Dhumal
30e7016077
Changed array representation and formatting for the data types in Query Tool and View Data. Fixes #2671
2017-09-18 12:07:15 +05:30
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
Harshal Dhumal
d339d6b816
Do not dump the session data on the disk on every request.
...
Session object is updated, everytime a request is being served, and
that was forcing the session object dumped on the dist on every request.
On windows, it was causing issues on slower system on startup. Because -
windows file system locks the file, when it is opened by any
application. And, frequent requests on the pgAdmin main UI rendering
was causing issues, because of that.
In order to resolve the issue, we will not write the session data on
disk for every request, but - only after certain delay (in seconds),
from it was last written. It can be configured using the attribute
'PGADMIN_SESSION_DISK_WRITE_DELAY' in the configuration file,
default vaule for the delay is 10.
(i.e. 10 seconds)
2017-07-25 15:52:32 +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
Harshal Dhumal
54882e061c
Don't attempt to render binary data in the query tool result grid. Fixes #2080 . Fixes #2074 .
2017-07-20 13:09:47 +01:00
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
501120701e
Allow the dashboard panel to be closed. Fixes #2506
2017-06-30 10:11:34 +01:00
Khushboo Vashi
301798d87a
Fix encoding issue when saving servers. Fixes #2518
...
Patch by Khushboo, based on a suggested fix from Ladislav Jech
2017-06-28 09:44:32 -04:00
Dave Page
96412b3219
Revert "Allow the user to close the dashboard panel. Fixes #2506 "
...
This reverts commit a87ee6d059
.
2017-06-27 10:35:43 -04:00
Khushboo Vashi
a87ee6d059
Allow the user to close the dashboard panel. Fixes #2506
2017-06-27 09:21:24 -04:00
Harshal Dhumal
c65158312d
Use on-demand loading for results in the query tool. Fixes #2137
...
With a 27420 row query, pgAdmin III runs the query in 5.873s on my laptop. pgAdmin 4 now takes ~1s.
2017-06-27 09:03:04 -04:00
Atul Sharma
15cb9fc35b
Add support for the hostaddr connection parameter. This helps us play nicely with Kerberos/SSPI and friends. Fixes #2191
2017-06-26 15:48:59 -04:00
Khushboo Vashi
33e75d24f8
Fix preferences handling for utilities.
2017-06-22 12:18:56 +01:00
Murtuza Zabuawala
d2ba57c1ab
Properly handle bytea[], and 'infinity'::real/real[]. Fixes #2498 . Fixes #2502 .
2017-06-20 10:19:11 +01:00
Joao Pedro De Almeida Pereira
4b846ae4e0
Fix the JS Bundler test to work when there are multiple servers defined in a test run.
2017-06-14 09:37:20 +01:00
Dave Page
cb97722fc3
Temporarily disable the Javascript bundler test until it handle more than one run.
2017-06-13 14:21:41 +01:00
Shruti B Iyer
1208206bc0
Initial re-vamp of the History tab.
2017-06-13 09:50:41 +01:00
Shruti B Iyer
659eb1c1e8
Bring React into the tree, and add linting and bundling framework for the JS etc.
2017-06-12 16:51:54 +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
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
Murtuza Zabuawala
3bcbc50525
Fix the handling of double precision[] type. Fixes #1928
2017-06-08 14:50:51 +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
Murtuza Zabuawala
678b891ff7
Fix an intermittent error seen during result polling. Fixes #2470
2017-06-08 12:34:14 +01:00
Murtuza Zabuawala
1cb2a62fa8
Ensure object names are properly escaped for external process management. Fixes #2405
2017-05-15 13:01:12 +01:00
Murtuza Zabuawala
05787fdba9
Properly handle non-ASCII column names in CSV. Fixes #2314
2017-05-12 10:38:23 +01:00
Murtuza Zabuawala
63d42745ef
Fix various issues in CSV file download feature:
...
1) To handle non-ascii filenames which we set from table name. Fixes #2314
2) To handle non-ascii query data. Fixes #2253
3) To dump JSON type columns properly in csv. Fixes #2360
2017-05-08 13:36:11 +01:00
Harshal Dhumal
a80f760933
Only reconnect to databases that were previously connected. Fixes #2292
2017-05-08 12:36:51 +01:00
Navnath Gadakh
c32bf7780e
Windows compatibility fixes for the test suite.
2017-05-08 09:25:05 +01:00
Murtuza Zabuawala
38c8a4fb60
Fix handling of bigint[] type. Fixes #2272
2017-04-25 12:24:02 +05:30
Akshay Joshi
59834fba31
Initial support for PG 10.0, per #2214
2017-04-24 13:55:29 +01:00
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
Jonas Thelemann
ea2b3f43bd
Remove unnecessary quotes.
2017-04-05 13:58:47 +01:00
Jonas Thelemann
65f21a8cd7
Replace all occurrences of "can not" with "cannot".
2017-04-05 13:38:14 +01:00
Harshal Dhumal
9acf340400
Generic function qtLiteral was not adapting values properly when they contain non ascii characters. Fixes #2305
2017-03-31 21:11:25 -04:00
Dave Page
7450c2df0d
Revert code cleanup that wasn't 2.6 compatible.
2017-03-27 21:27:17 -04:00
Akshay Joshi
757500c478
Ensure preferences are properly saved the first time they're set.
2017-03-27 12:19:28 -04:00
Dave Page
6152d73f13
Fix some code inspection complaints
2017-03-25 22:04:52 -04:00
Khushboo Vashi
0eda6033df
Allow users to select UI language at login or from Preferences rather than unpredictable behaviour from browsers. Fixes #2190
2017-03-24 14:20:10 +00:00
Murtuza Zabuawala
d4e88217eb
Added timeout in _wait_timeout function in our psycopg2 module.
...
Fixes debugger module, Added common function to covert 2d array data to dict for BackGrid.
2017-03-24 14:01:59 +05:30
Surinder Kumar
aee1492d0d
Correct some EDB Postgres Advanced Server branding.
2017-03-21 10:12:26 +00:00
Murtuza Zabuawala
e9702752d9
Fix hadling of DATERANGE[] type. Fixes #2258
2017-03-17 12:40:08 +00:00
Harshal Dhumal
e4134695e5
Fix dropping of databases with Unicode names. Fixes #2243
...
1. Pickup correct encoding in qtLiteral to decode.
2. While releasing database connection only decode database name if it's not unicode.
2017-03-17 10:33:03 +00:00
Dave Page
b2a74ad26d
Fix a bunch of file headers.
2017-03-16 14:27:55 +00:00
Ashesh Vashi
6cc1fbe739
Import config only when needed, it was causing cyclic dependency when
...
running the regression suite.
2017-03-07 16:07:10 +05:30
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
Ashesh Vashi
f2fc1ceba8
Resolved quite a few file-system encoding/decoding related cases.
...
In order to resolve the non-ascii characters in path (in user directory,
storage path, etc) on windows, we have converted the path into the
short-path, so that - we don't need to deal with the encoding issues
(specially with Python 2).
We've resolved majority of the issues with this patch.
We still need couple issues to resolve after this in the same area.
TODO
* Add better support for non-ascii characters in the database name on
windows with Python 3
* Improve the messages created after the background processes by
different modules (such as Backup, Restore, Import/Export, etc.),
which does not show short-paths, and xml representable characters for
non-ascii characters, when found in the database objects, and the file
PATH.
Fixes #2174 , #1797 , #2166 , #1940
Initial patch by: Surinder Kumar
Reviewed by: Murtuza Zabuawala
2017-03-07 15:31:03 +05:30
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
Atira Odhner
e89c54c15d
Make feature test app teardown more reliable, and tests faster
...
- don't spin up app and chromedriver between each test
- catching signals also tears down the app
- do layout reset between tests, but assume that tests will not leave a modal opened.
Use selenium built-in waiting function and fix flakiness around clicking the alertify OK button
- we think the OK button does not have its event bound when it is created.
If you see more flakiness around clicking the alertify OK button, let us know. The element is clickable but we have to arbitrarily wait for the event to be bound and that timing may vary system to system.
The feature tests are about 7 seconds faster now.
Tira & Joao
2017-03-01 13:20:06 +00:00
Murtuza Zabuawala
480e00fddf
Query tool efficiency.Convert the data as a 2D array instead of dict. Fixes #2036
...
Incremental back off when polling. Fixes #2038
Initial Patch By: Dave Page
2017-03-01 16:58:51 +05:30
Surinder Kumar
88cae263b2
Fix display of long integers and decimals. Fixes #2039 . Fixes #2119 . Fixes #2154
2017-02-24 13:39:40 +00:00