Skip to content

Commit

Permalink
Increased max database name length to 128
Browse files Browse the repository at this point in the history
If a ‘USE <database name larger than 30 characters’ query is executed,
the dbname function would be trimmed. 128 is based on the microsoft
create database docs.
  • Loading branch information
freddy77 committed Feb 11, 2016
1 parent dfe1e00 commit a19a535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/dblib.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ extern "C"

/* $Id: dblib.h,v 1.49 2011-12-05 02:26:31 jklowden Exp $ */

/* https://msdn.microsoft.com/en-us/library/ms176061.aspx */
#define DBMAXNAME 128

typedef enum tag_DB_RESULT_STATE {
_DB_RES_INIT
, _DB_RES_RESULTSET_EMPTY
Expand Down
1 change: 0 additions & 1 deletion include/sybdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ static const void *const no_unused_sybdb_h_warn[] = { rcsid_sybdb_h, no_unused_s
#define INT_TIMEOUT 3

#define DBMAXNUMLEN 33
#define DBMAXNAME 30

/**
* DBVERSION_xxx are used with dbsetversion()
Expand Down

0 comments on commit a19a535

Please sign in to comment.