Skip to content

Commit

Permalink
SQLyog 13.0.1 GA
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhyawy committed Aug 16, 2018
1 parent 876d0ae commit 4c5bc71
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
3 changes: 3 additions & 0 deletions include/MySQLVersionHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ wyBool IsMariaDB52(Tunnel * tunnel, PMYSQL mysql);
//MySQL 5.7.0 for Virtual/Stored columns
wyBool IsMySQL57(Tunnel * tunnel, PMYSQL mysql);

//MySQL 5.7.3 EXPLAIN EXTENDED is removed
wyBool IsMySQL573(Tunnel * tunnel, PMYSQL mysql);

//MySQL 5.7.7 for SYS Schema
wyBool IsMySQL577(Tunnel * tunnel, PMYSQL mysql);

Expand Down
3 changes: 2 additions & 1 deletion src/CustomSaveDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ wyInt32
CustomSaveDlg::Create()
{
HGLOBAL hglobal;
wyInt32 ret, fontsize;
wyInt64 ret;
wyInt32 fontsize;
wyString fontname;
HDC hdc;
NONCLIENTMETRICS ncm = {0};
Expand Down
3 changes: 2 additions & 1 deletion src/FrameWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11677,7 +11677,8 @@ sessionsavesproc(void *arg)
}
else
{
const wyChar *desc, *majorver , *minorver ;
const wyChar *desc = NULL, *majorver , *minorver ;

sqlitequery.Sprintf("SELECT * from schema_version");
pGlobals->m_sqliteobj->Prepare(&res, sqlitequery.GetString());
if(pGlobals->m_sqliteobj->Step(&res, wyFalse) && pGlobals->m_sqliteobj->GetLastCode() == SQLITE_ROW)
Expand Down
13 changes: 13 additions & 0 deletions src/MySQLVersionHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,19 @@ wyBool IsMySQL57(Tunnel * tunnel, PMYSQL mysql)
return wyFalse;


}

wyBool IsMySQL573(Tunnel * tunnel, PMYSQL mysql)
{
long me = mysql_get_server_version(*mysql);
const char *dbString = mysql_get_server_info(*mysql);

if (me >= 50703 && !strstr(dbString, "MariaDB"))
return wyTrue;
else
return wyFalse;


}

// MySQL 5.7.8
Expand Down

0 comments on commit 4c5bc71

Please sign in to comment.