Skip to content

Commit

Permalink
SQLyog 13.1.5 GA
Browse files Browse the repository at this point in the history
  • Loading branch information
wydeep committed Jul 19, 2019
1 parent 4204685 commit 12232de
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/CommonHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

#define FMT_SPACE_4 " "

#define REGKEY "xxx" //Provide any UUID here
#define REGKEY "Provide any UUID here"


#define SSHTUNNELER "plink.exe"
Expand Down
2 changes: 1 addition & 1 deletion include/Version.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MAJOR_VERSION_INT 13
#define MINOR_VERSION_INT 1
#define UPDATE_VERSION_INT 4
#define UPDATE_VERSION_INT 5
#define RELEASE_VERSION_INT 0
#define EXTRAINFO " "
4 changes: 3 additions & 1 deletion src/ClientMySQLWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#define LOST_CONNECTION_ERROR 2013
#define NO_DB_SELECTED 1046
#define MYSQL_CONNECT_ERROR 2003
#define CR_CONNECTION_ERROR 2002

/* function checks whether there a unprintable character in between */
/* this function is required for tunneling as we need to send the data in base 64 encoding */
Expand Down Expand Up @@ -323,7 +324,8 @@ MYSQL_RES* SjaExecuteAndGetResult(Tunnel *tunnel, PMYSQL mysql, wyString &query,
if(!tunnel->IsTunnel() && ret &&
((tunnel->mysql_errno(*mysql)== MYSQL_CONNECT_ERROR) ||
(tunnel->mysql_errno(*mysql)== MYSQL_SERVER_GONE) ||
tunnel->mysql_errno(*mysql) == LOST_CONNECTION_ERROR))
tunnel->mysql_errno(*mysql) == LOST_CONNECTION_ERROR) ||
tunnel->mysql_errno(*mysql) == CR_CONNECTION_ERROR)
{
if(HandleReconnect(tunnel, mysql, coninfo, usedbname) == true)
ret = HandleSjaMySQLRealQuery(tunnel, *mysql, query.GetString(), query.GetLength(), isbatch, (bool*)stop);
Expand Down
4 changes: 2 additions & 2 deletions src/CommonHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ extern FILE *logfilehandle;
static wyChar table64[]=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

static CryptoPP::byte AESKey[16] = { };// Type any key
static CryptoPP::byte AESiv[16] = { };//Type any IV
static CryptoPP::byte AESKey[16] = { };//provide any Key
static CryptoPP::byte AESiv[16] = {}; //Provide any IV

Tunnel *
CreateTunnel(wyBool istunnel)
Expand Down
5 changes: 4 additions & 1 deletion src/FrameWindowHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
#define MYSQL_SERVER_GONE 2006
#define NO_DB_SELECTED 1046
#define MYSQL_CONNECT_ERROR 2003
#define CR_CONNECTION_ERROR 2002


#define MAX_QUERY_SIZE (1024*4)
#define ZERO 0
Expand Down Expand Up @@ -153,7 +155,8 @@ wyInt32 my_query(MDIWindow *wnd, Tunnel * tunnel, PMYSQL mysql, const wyChar *qu
ret &&((tunnel->mysql_errno(*mysql)== MYSQL_CONNECT_ERROR) ||
(tunnel->mysql_errno(*mysql)== NO_DB_SELECTED) ||
(tunnel->mysql_errno(*mysql)== MYSQL_SERVER_GONE) ||
tunnel->mysql_errno(*mysql) == LOST_CONNECTION_ERROR)&& querycount == 0 && (!stop || !(*stop)))
tunnel->mysql_errno(*mysql) == LOST_CONNECTION_ERROR ||
tunnel->mysql_errno(*mysql) == CR_CONNECTION_ERROR)&& querycount == 0 && (!stop || !(*stop)))
{
wnd->m_isreconnected = wyFalse;
if(wnd->ReConnect(tunnel, mysql, wnd->m_conninfo.m_isssh, isimport, profile) == wyTrue)
Expand Down

0 comments on commit 12232de

Please sign in to comment.