You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/JDBC/expected/long-identifiers-error-messages.out
+61Lines changed: 61 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -637,6 +637,65 @@ GO
637
637
638
638
~~ERROR (Message: The database 'nonexistent_very_long_database_name_that_exceeds_postgresql_limit_of_sixty_three_chars' does not exist. Supply a valid database name. To see available databases, use sys.databases.)~~
639
639
640
+
641
+
642
+
-- ===========================================
643
+
-- Table variable errors
644
+
-- ===========================================
645
+
-- First batch declares (populates cache), second batch references (triggers error with full name)
646
+
DECLARE @Very_Long_Table_Variable_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters TABLE (id INT);
647
+
GO
648
+
SELECT * FROM @Very_Long_Table_Variable_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters;
649
+
GO
650
+
~~ERROR (Code: 33557097)~~
651
+
652
+
~~ERROR (Message: relation "@very_long_table_variable_name_that_exceeds_postgresql_limit_of_sixty_three_characters" does not exist)~~
653
+
654
+
655
+
-- ===========================================
656
+
-- Parameter name display in error messages
657
+
-- ===========================================
658
+
-- Function with long parameter name - missing required param shows full name
659
+
CREATE FUNCTION ErrTest_Func_Long_Param(@Very_Long_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters INT) RETURNS INT AS BEGIN RETURN @Very_Long_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters END;
660
+
GO
661
+
SELECT dbo.ErrTest_Func_Long_Param();
662
+
GO
663
+
~~ERROR (Code: 201)~~
664
+
665
+
~~ERROR (Message: function master_dbo.errtest_func_long_param expects parameter "@Very_Long_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters", which was not supplied.)~~
666
+
667
+
668
+
-- Procedure with long parameter name - missing required param shows full name
669
+
CREATE PROCEDURE ErrTest_Proc_Long_Param @Very_Long_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters INT AS SELECT @Very_Long_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters;
670
+
GO
671
+
EXEC ErrTest_Proc_Long_Param;
672
+
GO
673
+
~~ERROR (Code: 201)~~
674
+
675
+
~~ERROR (Message: procedure errtest_proc_long_param expects parameter "@Very_Long_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters", which was not supplied.)~~
676
+
677
+
678
+
-- Procedure with long TVP parameter name - missing required param shows full name
679
+
CREATE TYPE ErrTest_TVP_Type AS TABLE (id INT);
680
+
GO
681
+
CREATE PROCEDURE ErrTest_Proc_Long_TVP_Param @Very_Long_TVP_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters ErrTest_TVP_Type READONLY AS SELECT * FROM @Very_Long_TVP_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters;
682
+
GO
683
+
EXEC ErrTest_Proc_Long_TVP_Param;
684
+
GO
685
+
~~ERROR (Code: 201)~~
686
+
687
+
~~ERROR (Message: procedure errtest_proc_long_tvp_param expects parameter "@Very_Long_TVP_Parameter_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters", which was not supplied.)~~
688
+
689
+
690
+
DROP FUNCTION ErrTest_Func_Long_Param;
691
+
GO
692
+
DROP PROCEDURE ErrTest_Proc_Long_Param;
693
+
GO
694
+
DROP PROCEDURE ErrTest_Proc_Long_TVP_Param;
695
+
GO
696
+
DROP TYPE ErrTest_TVP_Type;
697
+
GO
698
+
640
699
-- CLEANUP
641
700
-- ===========================================
642
701
DROP INDEX ErrTest_Very_Long_Index_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters
@@ -655,5 +714,7 @@ DROP FUNCTION ErrTest_Very_Long_Function_Name_That_Exceeds_PostgreSQL_Limit_Of_S
655
714
GO
656
715
DROP PROCEDURE ErrTest_Very_Long_Procedure_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Chars;
657
716
GO
717
+
DROP PROCEDURE ErrTest_Proc_Constraint;
718
+
GO
658
719
DROP TYPE ErrTest_Very_Long_Type_Name_That_Exceeds_PostgreSQL_Limit_Of_Sixty_Three_Characters;
0 commit comments