James Puleo
aa17f013c1
Use a string interpolation and escape single quotes when escaping tables
2022-10-05 13:57:30 -04:00
Patrikkk
5706eaf138
Fix SQL incompatibility.
...
This is the real fix for MySql8 compatibility, without breaking SQL.
This will not affect current databases, all that happens is that we actually escape all column names on the table creation query. This should be standarized along the whole query builder.
2020-05-24 02:02:50 +02:00
Lucas Nicodemus
70dd72443d
Update copyright to 2019 again
...
Fixes #1658 , most likely.
2019-03-29 17:16:37 -07:00
Lucas Nicodemus
569b350cea
Update to Pryaxis, 2018 part 2
...
If there's one thing I learned in this exercise, it's that letting
people add random python scripts to the repo like gpltext.py that
promise to be easier than find and replace is a bad idea.
2018-01-01 02:20:56 -07:00
Edgar Luque
4575792987
Formatted a bit better and moved SqlColumnException to SqlColumn.cs
2017-12-09 16:45:31 +01:00
Edgar Luque
6a6133f3f7
Add xml comments and DateTime datatype support for SQL
2017-12-09 11:35:31 +01:00
White
c4a3a9fb67
Updated Copyright for 2017
2017-03-13 12:17:16 +10:30
Adilson Carvalho
49b4effe74
Changed year to 2016 on all GPL headers
2016-10-16 17:06:02 -02:00
Zack
f9bf470b1d
Tick version and update copyright
2015-01-28 15:29:13 -05:00
Zack Piispanen
1c7fe908b6
Delete a bunch of cruft that has gone unmaintained for too long.
...
Fix warps to have an auto-increment primary key column, and unique on name/WorldID
Same for regions.
Changed SqliteTableCreator to do proper unique syntax.
2014-09-03 02:41:53 -04:00
Zack
fb451c6d49
Update license header for 2014
2014-07-10 21:48:33 -04:00
PhoenixICE
7d18575d96
Added BIGINT and expanded log errors
2014-02-24 14:27:31 +11:00
MarioE
8b7e8772da
Add float/double data types
2013-11-27 22:00:47 -05:00
Lucas Nicodemus
ae7ab5f234
Updated copyright information to point to 2013.
2013-08-22 21:51:17 -06:00
Lucas Nicodemus
8d5cdf04a8
Update copyright to reflect actual year date.
2012-04-24 12:45:46 -06:00
Zack Piispanen
58359edd12
More typos....
2012-03-04 00:09:23 -05:00
Zack Piispanen
9da1701354
Fixed typo in GenericSQLQuery.
2012-03-03 23:57:12 -05:00
stevenh
6c636d4084
Refactored IQueryBuilder extracting common code into the GenericQueryCreator
...
Fixed MysqlQueryCreator UpdateValue generating invalid SQL fixes #400
2012-02-22 11:47:09 +00:00
stevenh
6d08fef275
Fixed missing UNIQUE constraints when using SQLite
...
Fixed missing NOT NULL constaints when using MySQL
2012-02-13 23:44:58 +00:00
Lucas Nicodemus
bf9d0137f1
Added any missing license headers to all files
2012-01-01 03:06:48 -07:00
high
41be28b5a3
Added blob type to sqlite
2011-12-31 18:22:07 -05:00
Lucas Nicodemus
c6abbfe4d2
ReSharper code reformat to match naming conventions and stuff
2011-12-30 14:38:04 -07:00
Lucas Nicodemus
1147788154
ReSharper redundant code cleanup
2011-12-30 14:32:05 -07:00
Zidonuke
34efba9c1f
Changed hack detection to allow future permissions overrides, now prevents hack clients modding max hp while online.
2011-12-28 21:03:29 -05:00
Twitchy
203f3aa570
Adds Delete Row.
2011-08-07 20:10:22 +12:00
Twitchy
a435966f07
Fixed Insert where
2011-08-07 20:04:08 +12:00
high
d02d48287e
Fixed AUTO_INCREMENT being wrong and UNIQUE should be on the inside of the quotes.
2011-08-05 01:31:19 -04:00
Twitchy
2c4625e426
Adds SQL Queries for Update, Read and Insert
2011-08-04 21:53:02 +12:00
high
a0d2fe1427
NUMERIC should have been INTEGER
2011-08-04 00:26:36 -04:00
high
1a801b268c
All managers now use querybuilder for creating tables to make for easy changes.
2011-08-03 19:55:23 -04:00
high
423a33325a
Finished:
...
-sqlite altering
-implemented mysql
Todo:
-Merge SqlTableCreator into the querybuilders or make it static
-Make all the managers use the querybuilder for making tables. (See GroupManager.cs for an example)
-Implement more datatypes (see TypesAsStrings in IQueryBuilder.cs)
2011-08-03 18:37:42 -04:00
high
3e045d51bf
Added Random.NextString
...
Rename IQueryCreator to IQueryBuilder
2011-08-03 04:22:20 -04:00