@@ -61,6 +61,16 @@ internal static class ErrorType
6161 /// </summary>
6262 internal static class ErrorMessage
6363 {
64+ /// <summary>
65+ /// Error message indicating that SELECT queries are only supported in 'FetchData'.
66+ /// </summary>
67+ internal static readonly string UnsupportedFetchDataCommand = "Only SELECT queries are supported here." ;
68+
69+ /// <summary>
70+ /// Error message indicating that SELECT queries are only supported in 'ExecuteScalar'.
71+ /// </summary>
72+ internal static readonly string UnsupportedExecuteScalarCommand = "Only SELECT queries are supported here." ;
73+
6474 /// <summary>
6575 /// Error message indicating that SELECT queries are not supported in 'ExecuteCommand'.
6676 /// </summary>
@@ -70,18 +80,23 @@ internal static class ErrorMessage
7080 /// Error message indicating that SELECT queries are not supported in 'ExecuteTransaction'.
7181 /// </summary>
7282 internal static readonly string UnsupportedSelectExecuteTransaction = "SELECT queries are not supported here." ;
73-
74- /// <summary>
75- /// Error message indicating that SELECT queries are only supported in 'ExecuteScalar'.
76- /// </summary>
77- internal static readonly string UnsupportedExecuteScalarCommand = "Only SELECT queries are supported here." ;
7883 }
7984
8085 /// <summary>
8186 /// Defines additional information related to QueryDB exceptions.
8287 /// </summary>
8388 internal static class AdditionalInfo
8489 {
90+ /// <summary>
91+ /// Error message indicating that SELECT queries are only supported in 'FetchData'.
92+ /// </summary>
93+ internal static readonly string UnsupportedFetchDataCommand = "'FetchData' only supports SELECT queries that return result set." ;
94+
95+ /// <summary>
96+ /// Error message indicating that SELECT queries are only supported in 'ExecuteScalar'.
97+ /// </summary>
98+ internal static readonly string UnsupportedExecuteScalarCommand = "'ExecuteScalar' only supports SELECT queries that have a scalar (single value) return." ;
99+
85100 /// <summary>
86101 /// Additional information about unsupported SELECT queries in 'ExecuteCommand'.
87102 /// </summary>
@@ -91,11 +106,6 @@ internal static class AdditionalInfo
91106 /// Additional information about unsupported SELECT queries in 'ExecuteTransaction'.
92107 /// </summary>
93108 internal static readonly string UnsupportedSelectExecuteTransaction = "'ExecuteTransaction' doesn't support SELECT queries." ;
94-
95- /// <summary>
96- /// Error message indicating that SELECT queries are only supported in 'ExecuteScalar'.
97- /// </summary>
98- internal static readonly string UnsupportedExecuteScalarCommand = "'ExecuteScalar' only supports SELECT queries that have a scalar (single value) return." ;
99109 }
100110 }
101111}
0 commit comments