Modified:
trunk/driver/myutil.h
trunk/driver/utility.c
Log:
Remove unused function in utility.c
Modified: trunk/driver/myutil.h
===================================================================
--- trunk/driver/myutil.h 2007-05-15 17:10:19 UTC (rev 421)
+++ trunk/driver/myutil.h 2007-05-15 18:45:19 UTC (rev 422)
@@ -79,7 +79,6 @@
void fix_result_types(STMT *stmt);
char *fix_str(char *to,const char *from,int length);
char *dupp_str(char *from,int length);
-bool empty_str(char *from,int length);
SQLRETURN my_pos_delete(STMT FAR *stmt,STMT FAR *stmtParam,
SQLUSMALLINT irow,DYNAMIC_STRING *dynStr);
SQLRETURN my_pos_update(STMT FAR *stmt,STMT FAR *stmtParam,
Modified: trunk/driver/utility.c
===================================================================
--- trunk/driver/utility.c 2007-05-15 17:10:19 UTC (rev 421)
+++ trunk/driver/utility.c 2007-05-15 18:45:19 UTC (rev 422)
@@ -182,21 +182,6 @@
/*
@type : myodbc internal
- @purpose : returns 1 if from is a null pointer or a empty string
-*/
-
-bool empty_str(char *from,int length)
-{
- if ( !from )
- return 1;
- if ( length == SQL_NTS )
- return from[0] == 0;
- return !length;
-}
-
-
-/*
- @type : myodbc internal
@purpose : copies the string data to rgbValue buffer. If rgbValue
is NULL, then returns warning with full length, else
copies the cbValueMax length from 'src' and returns it.
| Thread |
|---|
| • Connector/ODBC 3.51 commit: r422 - trunk/driver | jwinstead | 15 May |