Subject: | dbdimp.c (dbd_st_execute): fixed "CURRENT_TIMESTAMP" char count in Renew() |
This seems to be a copy-paste bug.
--
Alexey Tourbin
ALT Linux Team
Subject: | DBD-Pg-2.2.0-Renew-CURRENT_TIMESTAMP.patch |
commit 3e9003782fef9b2452e44bc8d5344f4dc3e70bfd
Author: Alexey Tourbin <at@altlinux.ru>
Date: Sun Mar 2 03:47:58 2008 +0300
dbdimp.c (dbd_st_execute): fixed "CURRENT_TIMESTAMP" char count in Renew()
diff --git a/dbdimp.c b/dbdimp.c
index ac9e860..228c8ec 100644
--- a/dbdimp.c
+++ b/dbdimp.c
@@ -2770,7 +2770,7 @@ int dbd_st_execute (SV * sth, imp_sth_t * imp_sth)
currph->quotedlen = 7;
}
else if (currph->iscurrent) {
- Renew(currph->quoted, 8, char); /* freed in dbd_st_destroy */
+ Renew(currph->quoted, 18, char); /* freed in dbd_st_destroy */
strncpy(currph->quoted, "CURRENT_TIMESTAMP", 18);
currph->quotedlen = 17;
}