Import of pkgsrc-2014Q1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
$NetBSD: patch-src_connection_sqlrcursor.h,v 1.1 2013/10/20 18:18:28 joerg Exp $
|
||||
|
||||
--- src/connection/sqlrcursor.h.orig 2013-10-17 12:20:42.000000000 +0000
|
||||
+++ src/connection/sqlrcursor.h
|
||||
@@ -167,9 +167,9 @@ class sqlrcursor_svr {
|
||||
// methods/variables used by derived classes
|
||||
stringbuffer *fakeInputBinds(const char *query);
|
||||
|
||||
- bool skipComment(char **ptr, const char *endptr);
|
||||
- bool skipWhitespace(char **ptr, const char *endptr);
|
||||
- bool advance(char **ptr, const char *endptr,
|
||||
+ bool skipComment(const char **ptr, const char *endptr);
|
||||
+ bool skipWhitespace(const char **ptr, const char *endptr);
|
||||
+ bool advance(const char **ptr, const char *endptr,
|
||||
uint16_t steps);
|
||||
|
||||
sqlrconnection_svr *conn;
|
||||
@@ -0,0 +1,41 @@
|
||||
$NetBSD: patch-src_connection_sqlrcursor_queryparse.C,v 1.1 2013/10/20 18:18:28 joerg Exp $
|
||||
|
||||
--- src/connection/sqlrcursor/queryparse.C.orig 2013-10-17 12:19:25.000000000 +0000
|
||||
+++ src/connection/sqlrcursor/queryparse.C
|
||||
@@ -49,8 +49,8 @@ char *sqlrcursor_svr::skipWhitespaceAndC
|
||||
|
||||
void sqlrcursor_svr::checkForTempTable(const char *query, uint32_t length) {
|
||||
|
||||
- char *ptr=(char *)query;
|
||||
- char *endptr=(char *)query+length;
|
||||
+ const char *ptr=query;
|
||||
+ const char *endptr=query+length;
|
||||
|
||||
// skip any leading comments
|
||||
if (!skipWhitespace(&ptr,endptr) || !skipComment(&ptr,endptr) ||
|
||||
@@ -78,7 +78,7 @@ void sqlrcursor_svr::checkForTempTable(c
|
||||
conn->addSessionTempTableForDrop(tablename.getString());
|
||||
}
|
||||
|
||||
-bool sqlrcursor_svr::skipComment(char **ptr, const char *endptr) {
|
||||
+bool sqlrcursor_svr::skipComment(const char **ptr, const char *endptr) {
|
||||
while (*ptr<endptr && !charstring::compare(*ptr,"--",2)) {
|
||||
while (**ptr && **ptr!='\n') {
|
||||
(*ptr)++;
|
||||
@@ -87,14 +87,14 @@ bool sqlrcursor_svr::skipComment(char **
|
||||
return *ptr!=endptr;
|
||||
}
|
||||
|
||||
-bool sqlrcursor_svr::skipWhitespace(char **ptr, const char *endptr) {
|
||||
+bool sqlrcursor_svr::skipWhitespace(const char **ptr, const char *endptr) {
|
||||
while ((**ptr==' ' || **ptr=='\n' || **ptr==' ') && *ptr<endptr) {
|
||||
(*ptr)++;
|
||||
}
|
||||
return *ptr!=endptr;
|
||||
}
|
||||
|
||||
-bool sqlrcursor_svr::advance(char **ptr, const char *endptr, uint16_t steps) {
|
||||
+bool sqlrcursor_svr::advance(const char **ptr, const char *endptr, uint16_t steps) {
|
||||
for (uint16_t i=0; i<steps && *ptr<endptr; i++) {
|
||||
(*ptr)++;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-src_connections_oracle8_oracle8connection.C,v 1.1 2013/10/20 18:18:28 joerg Exp $
|
||||
|
||||
--- src/connections/oracle8/oracle8connection.C.orig 2013-10-17 12:22:31.000000000 +0000
|
||||
+++ src/connections/oracle8/oracle8connection.C
|
||||
@@ -1076,8 +1076,8 @@ void oracle8cursor::returnOutputBindClob
|
||||
|
||||
void oracle8cursor::checkForTempTable(const char *query, uint32_t length) {
|
||||
|
||||
- char *ptr=(char *)query;
|
||||
- char *endptr=(char *)query+length;
|
||||
+ const char *ptr=query;
|
||||
+ const char *endptr=query+length;
|
||||
|
||||
// skip any leading comments
|
||||
if (!skipWhitespace(&ptr,endptr) || !skipComment(&ptr,endptr) ||
|
||||
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-src_connections_router_routerconnection.C,v 1.1 2013/10/20 18:18:28 joerg Exp $
|
||||
|
||||
--- src/connections/router/routerconnection.C.orig 2013-10-17 12:22:33.000000000 +0000
|
||||
+++ src/connections/router/routerconnection.C
|
||||
@@ -600,8 +600,8 @@ void routercursor::checkForTempTable(con
|
||||
|
||||
// for oracle db's...
|
||||
|
||||
- char *ptr=(char *)query;
|
||||
- char *endptr=(char *)query+length;
|
||||
+ const char *ptr=query;
|
||||
+ const char *endptr=query+length;
|
||||
|
||||
// skip any leading comments
|
||||
if (!skipWhitespace(&ptr,endptr) || !skipComment(&ptr,endptr) ||
|
||||
Reference in New Issue
Block a user