7 Commits

Author SHA1 Message Date
e5410f177f - Add reasonable opCompress to default client-options
- TMySQLConnection.Query now returns the result if any. Fill RowsAffected and RowsFound at the same time.
- TMySQLConnection.GetRow / GetVar implemented for simple query-logic with minimal overhead.
- Give SetDatabase the chance to reset FDatabase to the prior value by catching a potential exception.
2007-09-20 21:54:51 +00:00
febc6ac04e - Resolve hex and shifted numbers to readable integers
- Switch cardinal parameter to integer to avoid typecasting in callers. Safe, because mysql_num_fields will never return more than 2^31 columns - maximum columncount in MySQL is ~3000.
2007-09-20 21:38:50 +00:00
b1d8ac345f Cleanly name TMySQLServerCapabilities and TMySQLClientOptions, so they tell what they're for. 2007-09-19 21:07:30 +00:00
9b5c32ead1 - Extend TMySQLCapability record
- Implement TMySQLConnectionOptions, replace property "Compressed" by single option.
- Introduce published events for DB aware components
- Add register procedure to enable installation into IDE
- Correctly set Active := False before raising an exeption
- Reset Database property to old value if USE command was not successful
- Introduce QuoteIdent function
- Various half-ready code blocks in TDataset procedures
2007-09-19 21:03:10 +00:00
9481386bdc - Sanitize API from Zeos specifics and unused types
- Clean indentation
2007-09-19 20:53:35 +00:00
0d31432aa9 Various updates for mysqldataset:
- Add property Capabilities to TMySQLConnection which is automatically filled after connect. Can be easily used by client-applications to decide if a feature can be used or not. The client will not need to know the relevant version numbers.
- documentation
- Consistently rename TSQL* types to TMySQL*
- Read ServerVersionStr always "live" by calling GetServerVersionStr as the reader. The version string *can* change after a reconnect.
2007-09-13 23:10:36 +00:00
cf770d4862 First try of creating a lightweight and flexible replacement of ZQuery + ZConnection. Only half implemented yet and far from being production-ready. Mainly the interface to TDataSource and DB aware components are missing. Will need to add some icky pointer stuff. 2007-09-12 23:19:03 +00:00