mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
In the query results, integers can be viewed in a human-readable form.
В расширенном представлении ячейки большие числа будут показаны в удобочитаемом виде.
This commit is contained in:
parent
90c328085e
commit
f434a890fe
2 changed files with 20 additions and 2 deletions
|
|
@ -10,6 +10,8 @@
|
|||
#define PREVIEW_ENDFIELD 16
|
||||
#define PREVIEW_ENDROW 32
|
||||
#define PREVIEW_QUOTE 64
|
||||
#define PREVIEW_RAWHTML 128
|
||||
|
||||
#define CHKFLAG2(val,par) ((val & par)>0)
|
||||
enum class fmtpreview {
|
||||
AUTO, AUTOVACCUM,CSV,SIMPLE_TEXT
|
||||
|
|
@ -61,8 +63,12 @@ private:
|
|||
bool saveTokenIfNotEmpty(wxString& savestr, int flag) {
|
||||
if (savestr.Length() > 0) {
|
||||
wxString tmp = savestr;
|
||||
tmp=escapeHtml(tmp,true);
|
||||
tmp.Replace(" ", " ");
|
||||
if (CHKFLAG2(flag, PREVIEW_RAWHTML)) {
|
||||
// nothing
|
||||
} else {
|
||||
tmp=escapeHtml(tmp,true);
|
||||
tmp.Replace(" ", " ");
|
||||
}
|
||||
if (CHKFLAG2(flag, PREVIEW_ENDROW)) tmp = "<br>";
|
||||
if (CHKFLAG2(flag, PREVIEW_DIGITS)) {
|
||||
int l = savestr.Length();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue