Not quite... Note this change in fieldget function:
... if ::FieldType(nNum) == "C" - return PadR(::aRow[nNum], ::aFieldStruct[nNum][MYSQL_FS_LENGTH]) + return PadR(::aRow[nNum], ::aFieldStruct[nNum][MYSQL_FS_MAXLEN]) ... Now the method returns exact character value as stored in MySQL table. With modification proposed, all character values returned will be padded with extra spaces that so the len() of returned string will be always exact as the field length defined in table structure. IMHO if in MySQL table a string like 'abc ' is stored then ::fieldget() method should return 'abc ' and not 'abc ...' Mitja --- On Thu, 2/5/09, Viktor Szakáts <[email protected]> wrote: > From: Viktor Szakáts <[email protected]> > Subject: [Harbour] mysql patch submitted on Tracker > To: "Harbour Project Main Developer List." <[email protected]> > Date: Thursday, February 5, 2009, 12:16 AM > Can someone confirm whether this patch is valid? > https://sourceforge.net/tracker/index.php?func=detail&aid=2308998&group_id=681&atid=100681 > > It changes MYSQL_FS_LENGTH to MYSQL_FS_MAXLEN in > tmysql.prg. > > Brgds, > Viktor > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
