@@ -61,6 +61,16 @@ internal static class ErrorType
61
61
/// </summary>
62
62
internal static class ErrorMessage
63
63
{
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
+
64
74
/// <summary>
65
75
/// Error message indicating that SELECT queries are not supported in 'ExecuteCommand'.
66
76
/// </summary>
@@ -70,18 +80,23 @@ internal static class ErrorMessage
70
80
/// Error message indicating that SELECT queries are not supported in 'ExecuteTransaction'.
71
81
/// </summary>
72
82
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." ;
78
83
}
79
84
80
85
/// <summary>
81
86
/// Defines additional information related to QueryDB exceptions.
82
87
/// </summary>
83
88
internal static class AdditionalInfo
84
89
{
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
+
85
100
/// <summary>
86
101
/// Additional information about unsupported SELECT queries in 'ExecuteCommand'.
87
102
/// </summary>
@@ -91,11 +106,6 @@ internal static class AdditionalInfo
91
106
/// Additional information about unsupported SELECT queries in 'ExecuteTransaction'.
92
107
/// </summary>
93
108
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." ;
99
109
}
100
110
}
101
111
}
0 commit comments