Skip to content

Commit

Permalink
Merge branch 'main' into set-value-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgerojas26 authored Oct 12, 2024
2 parents cabef15 + c4ac8f1 commit ff19a8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions components/ResultsTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func (table *ResultsTable) AddInsertedRows() {
tableCell.SetExpansion(1)
tableCell.SetReference(inserts[i].PrimaryKeyValue)


tableCell.SetTextColor(app.Styles.PrimaryTextColor)
tableCell.SetBackgroundColor(colorTableInsert)

Expand All @@ -305,6 +306,7 @@ func (table *ResultsTable) AppendNewRow(cells []models.CellValue, index int, UUI
tableCell.SetText(strings.Replace(cell.Value.(string), "&", "", 1))
tableCell.SetStyle(table.GetItalicStyle())
// tableCell.SetText("")

tableCell.SetTextColor(app.Styles.InverseTextColor)
}

Expand Down
15 changes: 9 additions & 6 deletions drivers/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,17 @@ func (db *Postgres) GetRecords(database, table, where, sort string, offset, limi
}
defer paginatedRows.Close()

if paginatedRows != nil {

rowsErr := paginatedRows.Err()
columns, columnsError := paginatedRows.Columns()
if columnsError != nil {
return nil, 0, columnsError
}

defer paginatedRows.Close()
records = append(records, columns)

if rowsErr != nil {
err = rowsErr
for paginatedRows.Next() {
rowValues := make([]interface{}, len(columns))
for i := range columns {
rowValues[i] = new(sql.RawBytes)
}

countQuery := "SELECT COUNT(*) FROM "
Expand Down

0 comments on commit ff19a8e

Please sign in to comment.