Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Bugfix: DBF Logical field can contain T/F/? values
Bugfix: DBF Logical field can contain T/F/? values [message #43211] Sun, 08 June 2014 18:36 Go to next message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
uppsrc/plugin/dbf/dbf.cpp:

@@ -228,17 +228,18 @@ String DbfStream::Field::Format(Value value, byte charset) const

 			temp[6] = s[1];
 			temp[7] = s[0];
 #endif
 			return temp;
 		}
 
 		case 'L': {
 			int cond = value;
-			return cond && !IsNull(cond) ? "A" : "N";
+			if(IsNull(cond)) return "?";
+			return cond ? "T" : "F";
 			}
 
 		default:  {
 			NEVER();
 			return Null;
 		}
 	}
 }

Re: Bugfix: DBF Logical field can contain T/F/? values [message #43231 is a reply to message #43211] Wed, 11 June 2014 08:21 Go to previous message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
Thanks, applied.
Previous Topic: PATCH: SqlSelect::ForUpdate() should generate nothing for SQLITE3
Next Topic: Bugfix: DBF version handling fixed
Goto Forum:
  


Current Time: Sat Jun 22 23:50:32 CEST 2024

Total time taken to generate the page: 0.01352 seconds