Skip to content

lab_12#23

Open
plidan123 wants to merge 1 commit intomainfrom
lab_12
Open

lab_12#23
plidan123 wants to merge 1 commit intomainfrom
lab_12

Conversation

@plidan123
Copy link
Owner

No description provided.

Copy link
Collaborator

@misshimichka misshimichka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Привет! Проверила ЛР12:

Здесь все в порядке, 5/5)

$$;


call schema2.add_employee(13, '+7-999-123-45-67');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Если попробовать добавить нормальный номер телефона (который не плохой), то появляется такая ошибка:
padii_plyugin2=> call schema2.add_employee(1, '8(800)555-3535');
ERROR:  value for domain phone violates check constraint "phone_check"
CONTEXT:  PL/pgSQL function schema1.validate_phone_array() line 9 at FOREACH over array
SQL statement "update schema1.employees
    set phone_number = array_append(phones, digits)
    where employee_id = p_employee_id"
PL/pgSQL function schema2.add_employee(numeric,text) line 36 at SQL statement

Это конфликт с лабой 11 или 13 вроде бы.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants