SVN Commit by dpage: r4627 - in trunk/pgadmin3: . xtra/pgagent

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4627 - in trunk/pgadmin3: . xtra/pgagent
Date: 2005-10-31 21:42:49
Message-ID: 200510312142.j9VLgn75032645@developer.pgadmin.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Author: dpage
Date: 2005-10-31 21:42:49 +0000 (Mon, 31 Oct 2005)
New Revision: 4627

Modified:
trunk/pgadmin3/CHANGELOG.txt
trunk/pgadmin3/xtra/pgagent/win32.cpp
Log:
Fix eventlog output in pgAgent, per Paolo Saudin

Modified: trunk/pgadmin3/CHANGELOG.txt
===================================================================
--- trunk/pgadmin3/CHANGELOG.txt 2005-10-31 21:01:23 UTC (rev 4626)
+++ trunk/pgadmin3/CHANGELOG.txt 2005-10-31 21:42:49 UTC (rev 4627)
@@ -17,18 +17,21 @@
</ul>
<br>
<ul>
- <li>2005-10-30 DP 1.4B4 Display line numbers in the query tool to aid function debugging/editting
- <li>2005-10-30 DP 1.4B4 Don't enable the OK button when setting the ACL for as-yet-uncreated objects
- <li>2005-10-27 DP 1.4B4 Reverse dialog OK/Cancel buttons for UI consistency on OS X per John DeSoi
- <li>2005-10-27 DP 1.4B4 Append the .sql file extension when saving files as type sql on OS X, per Florian G. Pflug
- <li>2005-10-24 DP 1.4B4 Prevent attempts to backup or restore is pg_dump/pg_restore cannot be found.
- <li>2005-10-23 AP 1.4B4 Fix crash when extracting schema from slony cluster
- <li>2005-10-22 AP 1.4B4 Fix New.. context menu
- <li>2005-10-21 AP 1.4B4 Fix Create a.. toolbar button on collection (r: Li Fei)
- <li>2005-10-20 AP 1.4B4 Fix Maintenance crash of disconnected DBs (r: A.J.Langereis)
- <li>2005-10-20 AP 1.4B4 Fix Unicode/pgsql80win32 hint (r: Oryza Triznyak)
- <li>2005-10-20 DP 1.4B4 Ensure the user can cancel the maintenance dialogue when it is running.
- <li>2005-10-20 DP 1.4B4 Fix the recent files list on the config file editor. (r: Miha Radej)
+ <li>2005-10-31 DP 1.4RC1 Fix eventlog output in pgAgent, per Paolo Saudin
+ <li>2005-10-31 DP 1.4RC1 Quote member names in compsoite types, per Ivan
+ <li>2005-10-31 DP 1.4RC1 Enable the precision textbox when adding numeric members to composite types, per Ivan
+ <li>2005-10-30 DP 1.4RC1 Display line numbers in the query tool to aid function debugging/editting
+ <li>2005-10-30 DP 1.4RC1 Don't enable the OK button when setting the ACL for as-yet-uncreated objects
+ <li>2005-10-27 DP 1.4RC1 Reverse dialog OK/Cancel buttons for UI consistency on OS X per John DeSoi
+ <li>2005-10-27 DP 1.4RC1 Append the .sql file extension when saving files as type sql on OS X, per Florian G. Pflug
+ <li>2005-10-24 DP 1.4RC1 Prevent attempts to backup or restore is pg_dump/pg_restore cannot be found.
+ <li>2005-10-23 AP 1.4RC1 Fix crash when extracting schema from slony cluster
+ <li>2005-10-22 AP 1.4RC1 Fix New.. context menu
+ <li>2005-10-21 AP 1.4RC1 Fix Create a.. toolbar button on collection (r: Li Fei)
+ <li>2005-10-20 AP 1.4RC1 Fix Maintenance crash of disconnected DBs (r: A.J.Langereis)
+ <li>2005-10-20 AP 1.4RC1 Fix Unicode/pgsql80win32 hint (r: Oryza Triznyak)
+ <li>2005-10-20 DP 1.4RC1 Ensure the user can cancel the maintenance dialogue when it is running.
+ <li>2005-10-20 DP 1.4RC1 Fix the recent files list on the config file editor. (r: Miha Radej)
<li>2005-10-18 DP 1.4B3 Correct font size on Splash and About forms on Mac.
<li>2005-10-18 AP 1.4B3 Prevent refresh of the servers treeview node
<li>2005-10-18 DP 1.4B3 Fix the autoconf code to ensure the debug and static options do what they should, and that a unicode wx build is used

Modified: trunk/pgadmin3/xtra/pgagent/win32.cpp
===================================================================
--- trunk/pgadmin3/xtra/pgagent/win32.cpp 2005-10-31 21:01:23 UTC (rev 4626)
+++ trunk/pgadmin3/xtra/pgagent/win32.cpp 2005-10-31 21:42:49 UTC (rev 4627)
@@ -56,20 +56,20 @@
{
char *tmp;
tmp = (char *)malloc(msg.length()+1);
- sprintf(tmp, msg.mb_str(wxConvUTF8));
+ sprintf(tmp, msg.ToAscii());

switch (level)
{
case LOG_DEBUG:
if (minLogLevel >= LOG_DEBUG)
- ReportEvent(eventHandle, EVENTLOG_INFORMATION_TYPE, 0, 0, NULL, 1, 0, (const unsigned short **)&tmp, NULL);
+ ReportEventA(eventHandle, EVENTLOG_INFORMATION_TYPE, 0, 0, NULL, 1, 0, (const char **)&tmp, NULL);
break;
case LOG_WARNING:
if (minLogLevel >= LOG_WARNING)
- ReportEvent(eventHandle, EVENTLOG_WARNING_TYPE, 0, 0, NULL, 1, 0, (const unsigned short **)&tmp, NULL);
+ ReportEventA(eventHandle, EVENTLOG_WARNING_TYPE, 0, 0, NULL, 1, 0, (const char **)&tmp, NULL);
break;
case LOG_ERROR:
- ReportEvent(eventHandle, EVENTLOG_ERROR_TYPE, 0, 0, NULL, 1, 0, (const unsigned short **)&tmp, NULL);
+ ReportEventA(eventHandle, EVENTLOG_ERROR_TYPE, 0, 0, NULL, 1, 0, (const char **)&tmp, NULL);
exit(1);
break;
}

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2005-10-31 21:59:45 SVN Commit by dpage: r4628 - in trunk/pgadmin3: . pkg/src src/include
Previous Message svn 2005-10-31 21:01:24 SVN Commit by dpage: r4626 - trunk/pgadmin3/src/dlg