topten Posted July 4, 2015 Share Posted July 4, 2015 I am getting an error when I am inserting a long string_LoadDatabase("statsk6.db3", 'id INTEGER PRIMARY KEY,counter TEXT,parameter TEXT, data TEXT', "task",0) $counter = "1" $data = "SSS0x5DDFE64EG1S1B16BDS0SD643DD5564A3DHJC10AC3F2B7FSUI9559E1F86SGHJD226A5169EASGHJEA6EF209DSUI953DA17BSG222AA25AESRD0EFC74D24F7RT81CC2CF1E13BF90E9SEFA5C2BSW40EA9D861F8A2D194EF6F71D50SD4C394F912B3809D1A0CE0ED79758ED7A4FB79AARDF50905CD853FFC4CDDF5EEA7A648DS5CA801865F0E7B9D76912E3D1203A9FCB8C01526CB7A152SF37E1221FC3C82A5E1F5BDG8D17D42206876A20B39D2EAFDC7ESSS" $ser = "1" Local $aRow _Insert('counter, parameter', $counter&',' & $data, 'task') _SQLite_QuerySingleRow(-1, "SELECT parameter FROM task WHERE counter = '" & $ser & "';", $aRow) MsgBox (0, "", $aRow[0]) Link to comment Share on other sites More sharing options...
Luigi Posted July 4, 2015 Share Posted July 4, 2015 You try use _SQLite_FastEscape($sString) ? topten 1 Visit my repository Link to comment Share on other sites More sharing options...
topten Posted July 4, 2015 Author Share Posted July 4, 2015 Bravo, Luigi! Thanx very much Link to comment Share on other sites More sharing options...
guinness Posted July 5, 2015 Share Posted July 5, 2015 Double posting is super annoying as well as no mention the UDF you're using. I am surprised that your problem was fixed. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now