Documentation errata or undocumented feature? DatabaseQuery

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

RobertSF
User
User
Posts: 61
Joined: Thu May 03, 2018 4:24 pm

Documentation errata or undocumented feature? DatabaseQuery

Post by RobertSF »

The documentation for DatabaseQuery says

Code: Select all

Executes a SQL query on the given database. Only queries which doesn't change the database records are accepted ('SELECT' like queries). To performs database modification, use DatabaseUpdate(). 
I didn't read the documentation and went ahead and used DatabaseQuery to update a record (e.g. UPDATE tablename SET field = value WHERE condition), and it works. The record is successfully updated with no apparent ill effects.

Can anyone else confirm this? "Yes, but do that twice, and it will clobber the stack, crashing your program" sort of thing?
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Documentation errata or undocumented feature? DatabaseQu

Post by Andre »

Anyone?
(suggestions for improving the docs....?)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Post Reply