Skip to content

Commit

Permalink
SQLyog 12.2.1 GA
Browse files Browse the repository at this point in the history
  • Loading branch information
maryamwy committed Feb 25, 2016
1 parent 1f4aa59 commit 8829592
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
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 12
#define MINOR_VERSION_INT 2
#define UPDATE_VERSION_INT 0
#define UPDATE_VERSION_INT 1
#define RELEASE_VERSION_INT 0
#define EXTRAINFO ""
1 change: 1 addition & 0 deletions src/CopyDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3125,6 +3125,7 @@ CopyDatabase::ExportActualData(wyChar * table,wyBool *isvirtual)
{
startrowcount = endrowcount;
endrowcount += chunklimit;
i=0;

if(IsCopyStopped() == wyTrue)
return wyTrue;
Expand Down
15 changes: 8 additions & 7 deletions src/DataView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,8 @@ DataView::IsColumnVirtual(wyInt32 col)
}

}


return m_data->m_colvirtual[col];
}

}
Expand Down Expand Up @@ -1054,7 +1055,7 @@ DataView::AddDataToQuery(MYSQL_ROW data, wyString &query, const wyChar* delimite
for(; i < max; i++)
{
//we ignore readonly columns
if(IsColumnReadOnly(i) == wyFalse && IsColumnVirtual(i) == wyFalse )
if(IsColumnReadOnly(i) == wyFalse && IsColumnVirtual(i) != 1 )
{
isblob = IsBinary(i);
GetColumnName(colname, i);
Expand Down Expand Up @@ -1127,7 +1128,7 @@ DataView::GenerateInsertQuery(wyString &query)
myrow = m_data->m_rowarray->GetRowExAt(m_data->m_modifiedrow)->m_row;

//ignore readonly columns and columns that are same
if(IsColumnReadOnly(i) == wyFalse && IsColumnVirtual(i) == wyFalse && (!m_data->m_oldrow || m_data->m_oldrow->m_row[i] != myrow[i] || fieldarray[i]))
if(IsColumnReadOnly(i) == wyFalse && IsColumnVirtual(i) != 1 && (!m_data->m_oldrow || m_data->m_oldrow->m_row[i] != myrow[i] || fieldarray[i]))
{
if(!fieldarray[i] && m_data->m_oldrow && m_data->m_oldrow->m_row[i] && myrow[i] && !strcmp(m_data->m_oldrow->m_row[i], myrow[i]))
{
Expand Down Expand Up @@ -1159,7 +1160,7 @@ DataView::GenerateInsertQuery(wyString &query)
for(i = 0, k = 0; i < m_data->m_datares->field_count; i++)
{
//ignore readonly columns
if(IsColumnReadOnly(i) == wyFalse && IsColumnVirtual(i) == wyFalse && fieldarray[i])
if(IsColumnReadOnly(i) == wyFalse && IsColumnVirtual(i) != 1 && fieldarray[i])
{
if(k++)
{
Expand Down Expand Up @@ -3330,7 +3331,7 @@ DataView::HandleBlobValue(WPARAM wparam, LPARAM lparam)
pib.m_data = GetCellValue(row, col, &len, wyFalse);

//check whether the column is readonly or not
isedit = (IsColumnReadOnly(col) || IsColumnVirtual(col) )? wyFalse : wyTrue;
isedit = (IsColumnReadOnly(col) || IsColumnVirtual(col)==1 )? wyFalse : wyTrue;

//if chardown is true then lparam = 1, else 0.
if(!pib.m_data)
Expand Down Expand Up @@ -6527,7 +6528,7 @@ DataView::UpdateRow()

for(i = 0; pkcount && i < m_data->m_datares->field_count; ++i)
{
if(IsColumnReadOnly(i) == wyFalse && IsColumnVirtual(i) == wyFalse)
if(IsColumnReadOnly(i) == wyFalse && IsColumnVirtual(i) != 1)
{
GetColumnName(colname, i);

Expand Down Expand Up @@ -7702,7 +7703,7 @@ DataView::ShowContextMenu(wyInt32 row, wyInt32 col, LPPOINT pt)
GetColumnName(column, col);

//if the column is not read-only
if((iscolreadonly = IsColumnReadOnly(col)) == wyFalse && (iscolvirtual = IsColumnVirtual(col)) == 0 )
if((iscolreadonly = IsColumnReadOnly(col)) == wyFalse && (iscolvirtual = IsColumnVirtual(col)) != 1 )
{
//check whether the column is nullable
iscolnullable = IsNullable(m_wnd->m_tunnel, m_data->m_fieldres, (wyChar*)column.GetString());
Expand Down
4 changes: 3 additions & 1 deletion src/FrameWindowHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2692,12 +2692,14 @@ GetColLengthArray(MYSQL_ROW row, wyInt32 col, wyUInt32 *len)
// loop thru and get the length of each field
for (; ((INT)i) <= (col + 1); column++, arr++)
{
if((INT)i!=col && (INT)i!=(col+1)){
if (!*column)
{
*arr = 0;
//i++;
continue;
}

}
if (start)
*plen = (unsigned long) ((byte*)*column-start-1);

Expand Down

0 comments on commit 8829592

Please sign in to comment.