GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Incompatible type when opening Query Tool in server mode · Issue #6252 · pgadmin-org/pgadmin4 Closed DescriptionDescribe the bug When opening the Query tool from the console, I get the following error: (psycopg.errors.UndefinedFunction) operator does not exist: integer = character varying\nLINE 3: ..._id = $2::INTEGER AND sharedserver.servergroup_id = $3::VARC...\n Looking at the rest of the message, in the parameters to the sharedserver query, servergroup_id_1 is being provided as a string, not an integer: 'servergroup_id_1': '6' In the table, the field that is matching is an integer. I see this behaviour in both 7.0 and 7.1. To Reproduce Steps to reproduce the behavior:
Expected behavior The Query Tool opens. Error message {"success":0,"errormsg":"(psycopg.errors.UndefinedFunction) operator does not exist: integer = character varying\nLINE 3: ..._id = $2::INTEGER AND sharedserver.servergroup_id = $3::VARC...\n ^\nHINT: No operator matches the given name and argument types. You might need to add explicit type casts.\n[SQL: SELECT sharedserver.id AS sharedserver_id, sharedserver.osid AS sharedserver_osid, sharedserver.user_id AS sharedserver_user_id, sharedserver.server_owner AS sharedserver_server_owner, sharedserver.servergroup_id AS sharedserver_servergroup_id, sharedserver.name AS sharedserver_name, sharedserver.host AS sharedserver_host, sharedserver.port AS sharedserver_port, sharedserver.maintenance_db AS sharedserver_maintenance_db, sharedserver.username AS sharedserver_username, sharedserver.password AS sharedserver_password, sharedserver.save_password AS sharedserver_save_password, sharedserver.role AS sharedserver_role, sharedserver.comment AS sharedserver_comment, sharedserver.discovery_id AS sharedserver_discovery_id, sharedserver.db_res AS sharedserver_db_res, sharedserver.bgcolor AS sharedserver_bgcolor, sharedserver.fgcolor AS sharedserver_fgcolor, sharedserver.service AS sharedserver_service, sharedserver.use_ssh_tunnel AS sharedserver_use_ssh_tunnel, sharedserver.tunnel_host AS sharedserver_tunnel_host, sharedserver.tunnel_port AS sharedserver_tunnel_port, sharedserver.tunnel_username AS sharedserver_tunnel_username, sharedserver.tunnel_authentication AS sharedserver_tunnel_authentication, sharedserver.tunnel_identity_file AS sharedserver_tunnel_identity_file, sharedserver.tunnel_password AS sharedserver_tunnel_password, sharedserver.shared AS sharedserver_shared, sharedserver.connection_params AS sharedserver_connection_params, servergroup_1.id AS servergroup_1_id, servergroup_1.user_id AS servergroup_1_user_id, servergroup_1.name AS servergroup_1_name \nFROM sharedserver LEFT OUTER JOIN servergroup AS servergroup_1 ON servergroup_1.id = sharedserver.servergroup_id \nWHERE sharedserver.name = %(name_1)s::VARCHAR(128) AND sharedserver.user_id = %(user_id_1)s::INTEGER AND sharedserver.servergroup_id = %(servergroup_id_1)s::VARCHAR AND sharedserver.osid = %(osid_1)s::INTEGER \n LIMIT %(param_1)s::INTEGER]\n[parameters: {'name_1': 'common', 'user_id_1': 2, 'servergroup_id_1': '6', 'osid_1': 33, 'param_1': 1}]\n(Background on this error at: https://sqlalche.me/e/20/f405)","info":"","result":null,"data":null} Desktop (please complete the following information):
Reacted by Daniel Souza, Jerry O'Donovan, Dagon- and Deepak G.C Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |