mariuz / flamerobin

FlameRobin is a database administration tool for Firebird RDBMS. Our goal is to build a tool that is: lightweight (small footprint, fast execution) cross-platform (Linux, Windows, Mac OS X, FreeBSD) dependent only on other Open Source software
http://flamerobin.org
MIT License
211 stars 64 forks source link

Small bugfix for FlameRobin #289

Closed mariuz closed 8 months ago

mariuz commented 1 year ago

Hello Marius,

I have corrected a small bug then extracting DDL of DB where AS reserved word is missing.

I am not able to commit to master, therefore I use email to deliver the fix.

Thanks for your work.

  src/metadata/function.cpp | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/metadata/function.cpp b/src/metadata/function.cpp
index 3dcd5afb..b0f9d30b 100644
--- a/src/metadata/function.cpp
+++ b/src/metadata/function.cpp
@@ -634,7 +634,7 @@ wxString FunctionSQL::getAlterSql(bool full)
      if (full)
          sql += getSource();
      else
-        sql += "BEGIN SUSPEND; END";
+        sql += "AS BEGIN SUSPEND; END";
      sql += "^\nSET TERM ; ^\n";
      return sql;
  }

-- S pozdravom,

Roland Turčan - konateľ