Skip to content

Log MySQL Errors - #102

Open
Lightning11wins wants to merge 276 commits into
masterfrom
log-mysql-errors
Open

Lightning11wins wants to merge 276 commits into
masterfrom
log-mysql-errors

Conversation

@Lightning11wins

@Lightning11wins Lightning11wins commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR will improve error handling in the MySQL driver by making the following changes:

Feature List

  • Fix errors from mysql_query() being ignored.
  • Fix errors from mysql_store_result() being ignored.
  • Fix errors from mysql_real_escape_string() being ignored.
  • Fix "errors" pretending to be warnings.
  • Fix error-propagation failures.
  • Fix errors not being marked as resolved.
  • Fix errors being cleared when they weren't resolved.
  • Add more error messages.
  • Add expect to reduce performance hit from checking for errors.

GitHub Relationships

These will need to be reviewed and merged into master before this PR is reviewed.

Useful C MySQL lib docs

Israel and others added 30 commits November 21, 2025 17:47
Fix styling mistakes.
Finish docs in OSDriver_Authoring.md.
Add support for querying the driver node object.
Fix clusterOpenQuery() succeeding on objects that could not be queried, resulting in fetch failures.
Remove "date_created" and "date_computed" from the list of * attributes on cluster and search entries.
Rename TARGET_ROOT to TARGET_NODE.
Rename snprint_llu() to snprint_commas_llu().
Move double_metaphone.c into centrallix util.
Move TypeToStr() to obj_datatypes.c.
Move TypeFromStr() to obj_datatypes.c.
Remove exp_fn_trim() (temporarily).
Revert reorder of exp_function registrations to avoid merge conflicts.
Update tests to give clearer feedback.
Add GCC_Dependencies.md to document a list of dependencies on GCC features.
Add .cluster to Prefixes.md.
# Conflicts:
#	centrallix/expression/exp_functions.c
Add log() and trim() exp functions (with tests).
Add optional variables in schemas.
Fix styling for schema verification.
Fix log() being treated as a reserved word.
Move docs for newmalloc, xarray, xhash, xstring, mtsession, and mtask out of OSDriver_Authoring.md and into their own files.
Add the imported date to OSDriver_Authoring.md.
Improve wording of cluster library description.
Improve comments.
Add more hints to the cluster driver.
Clean up and review some code.
Fix type warnings from const.
Clean up code.
…osine vectors instead of the data strings.

Clean up driver code to make it more readable.
…ored during cosine vector creation.

Improve edge case handling in clusters.c.
Add CommentAnchorsExtension.md to document the use of the comment anchors VSCode extension.
Add comment anchors support to string_similarity.md.
Add a new known issue to string_similarity.md.
… is NOT).

Remove DateTime cause for EXP_ARG_POSITIVE and EXP_ARG_NEGATIVE since it didn't work and wasn't used.
Add handling for unset DateCreated to objdrv_cluster.c (should never happen).
Clean up date handling code.
Update expression functions to use tree->Name instead of hard coding the function name.
Merge exp_fn_cos_compare() and exp_fn_lev_compare() since exp_fn_compare() can use tree->Name to do both.
Remove unused parameters from expression functions.
Fix spelling errors.
Clean up.
Add support to mqGetAttrValue().
Add support to expEvalProperty().
Add support to the query command in testobj_do_cmd().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request AI review for PRs. size: small Easy to review, probably ~200 lines or fewer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant