Debugger crashes when setting a value with quotes

Поиск
Список
Период
Сортировка
Искать
От
Heikki Linnakangas
Тема
Debugger crashes when setting a value with quotes
Дата
Msg-id
4D8B5B22.3090603@enterprisedb.com
Список
Дерево обсуждения
Debugger crashes when setting a value with quotes Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Debugger crashes when setting a value with quotes Dave Page <dpage@pgadmin.org>
Re: Debugger crashes when setting a value with quotes Timon <timosha@gmail.com>
Re: Debugger crashes when setting a value with quotes Dave Page <dpage@pgadmin.org>
Steps to reproduce:

1. Create a function:

CREATE OR REPLACE FUNCTION barfunc()
   RETURNS integer AS
$BODY$
  DECLARE
    var int4;
  BEGIN
    var := 1;
    IF 1=2 THEN NULL; END IF;
    RETURN var;
  END
$BODY$
   LANGUAGE plpgsql;

2. Start debugging on the function.

3. Change the value of variable 'var' in the debugger GUI to something 
with a single quote. Like "'123".

4. Move focus from the cell, pgAdmin3 crashes

Looking at the code in ctlCodeWindow.cpp, it seems that the new value is 
not quoted properly in the call to pldbg_deposit_value() server function.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com
В списке pgadmin-hackers по дате отправления
От: Dave Page
Дата:
Сообщение: Re: User mapping
От: Dave Page
Дата:
FAQ