Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   SQLite (https://forums.graalonline.com/forums/showthread.php?t=84995)

fowlplay4 04-17-2009 02:48 AM

I was mainly referring to using format instead of an array and format2

Think your player account example but with 19 parameters, 18 of which were variables with .escape() on the end.

xXziroXx 04-17-2009 04:08 PM

Quote:

Originally Posted by Stefan (Post 1484351)
Update: fixed it, will work fine with the next npcserver update.

Have that update been yet? If not, could you please update Maloria's NPC server with it?

Admins 04-17-2009 09:55 PM

Quote:

Originally Posted by fowlplay4 (Post 1484536)
I was mainly referring to using format instead of an array and format2

Think your player account example but with 19 parameters, 18 of which were variables with .escape() on the end.

Well what is the problem then to just loop through the array and call escape() on them?

fowlplay4 04-17-2009 10:28 PM

Yeah that's what I'm doing now.

Admins 04-18-2009 12:48 AM

The npcserver has been uploaded to all machines, restart it manually to get the new escape() command.

xXziroXx 04-18-2009 12:51 AM

Quote:

Originally Posted by Stefan (Post 1484715)
The npcserver has been uploaded to all machines, restart it manually to get the new escape() command.

Cheers. :D

devilsknite1 04-18-2009 09:28 AM

Quote:

Originally Posted by Inverness (Post 1484305)
You restarted the NPC-Server already to enable the SQL right?

Yes, I've done this. Multiple times...

Inverness 04-19-2009 03:32 AM

Currently NULL in SQL is represented as "" in Graal, this is a problem and there needs to be a way to differentiate between zero, an empty string, and NULL.

I was thinking perhaps a literal like "\\NULL\\" or "\\0" in GScript. c = '\0' just causes a compiler error.

Inverness 04-28-2009 03:24 AM

TSQLRequest.affectedrows doesn't appear to be working with my update statement even though I can see the change in a later query.

Admins 04-28-2009 11:09 AM

affectedrows is currently only used for mysql, is not touched by the sqlite database.

[email protected] 05-09-2009 12:25 PM

Any idea how to use the auto increment option as a primary key? I can't figure it out- thanks

Skyld 05-09-2009 12:30 PM

Quote:

Originally Posted by [email protected] (Post 1490433)
Any idea how to use the auto increment option as a primary key? I can't figure it out- thanks

http://www.sqlite.org/faq.html#q1

Google will serve you well. :)

[email protected] 05-09-2009 12:44 PM

Quote:

Originally Posted by Skyld (Post 1490434)
http://www.sqlite.org/faq.html#q1

Google will serve you well. :)

Thanks beautiful :}

TESTRETIS 07-28-2009 03:28 AM

Sorry for the bump, but is it possible in a future RC Update to have a console specifically for SQL Management, and to place and receive queries, with the ability to view a table, without relying on an Echo to RC, to do possible click sorting, displaying and indicating primary keys, composite keys, surrogate, etc.

cbk1994 07-28-2009 03:59 AM

Quote:

Originally Posted by TESTRETIS (Post 1511031)
Sorry for the bump, but is it possible in a future RC Update to have a console specifically for SQL Management, and to place and receive queries, with the ability to view a table, without relying on an Echo to RC, to do possible click sorting, displaying and indicating primary keys, composite keys, surrogate, etc.

Would be useful. I just downloaded a lightweight SQLite database manager, and set it as the default application for 'db' files, so when I double click it in file browser, it opens up.

I also built a basic in-game "SQL Explorer". If it was finished, it could eventually be added to client-RC (would actually be quite a nifty feature).

http://img11.imageshack.us/img11/928...1248746452.png


All times are GMT +2. The time now is 11:54 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.