Skip to content

Commit 8f039f9

Browse files
committed
Support for DROP FUNCTION.
1 parent 7fe213e commit 8f039f9

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Isql/FbBatchExecution.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public void Execute(bool autoCommit = true)
161161
case SqlStatementType.DropDomain:
162162
case SqlStatementType.DropException:
163163
case SqlStatementType.DropExternalFunction:
164+
case SqlStatementType.DropFunction:
164165
case SqlStatementType.DropFilter:
165166
case SqlStatementType.DropGenerator:
166167
case SqlStatementType.DropIndex:

Provider/src/FirebirdSql.Data.FirebirdClient/Isql/FbScript.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ static bool IsSetTermStatement(string statement, out string newTerm)
332332
{
333333
return SqlStatementType.DropExternalFunction;
334334
}
335+
if (sqlStatement.StartsWith("DROP FUNCTION", StringComparison.OrdinalIgnoreCase))
336+
{
337+
return SqlStatementType.DropFunction;
338+
}
335339
if (sqlStatement.StartsWith("DROP FILTER", StringComparison.OrdinalIgnoreCase))
336340
{
337341
return SqlStatementType.DropFilter;

Provider/src/FirebirdSql.Data.FirebirdClient/Isql/SqlStatementType.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ public enum SqlStatementType
247247
/// </summary>
248248
DropExternalFunction,
249249

250+
/// <summary>
251+
/// Represents the SQL statement: <b>DROP FUNCTION</b>
252+
/// </summary>
253+
DropFunction,
254+
250255
/// <summary>
251256
/// Represents the SQL statement: <b>DROP FILTER</b>
252257
/// </summary>

0 commit comments

Comments
 (0)