Új hozzászólás Aktív témák
-
Siriusb
veterán
válasz
sztanozs
#1858
üzenetére
Persze, hogy nincs benne datum nevű oszlop, mert az csak alias, a valódi oszlop dateofrecording névre hallgat..
A problémám lényege az volt, hogy az alias csak "current_date" név lehet (hiába találtam ki a "datum" fantázianevet), ugye ez hivatkozik a valódi, a táblában megtalálható "dateofrecording" nevű oszlopra a konverter szintaktikájában:
datum AS "dateofrecording [date]"
alias AS "oszlopnév [adattípus]"
azaz a konverter megkapja a mező nevét a táblából "dateofrecording", valamint hogy milyen típusra konvertálja a tartalmát a lekérdezéskor: [date], de a hivatkozási név nem lehet "datum" vagy bármi más, csak és kizárólag a "current_date" név megadásával hajlandó működni a konverter.
Ez nem olyan nagy baj, csak lenne leírva.
Mert ebből nem derült ki számomra:sqlite3.PARSE_COLNAMES
This constant is meant to be used with the detect_types parameter of the connect() function.
Setting this makes the SQLite interface parse the column name for each column it returns. It will look for a string formed [mytype] in there, and then decide that ‘mytype’ is the type of the column. It will try to find an entry of ‘mytype’ in the converters dictionary and then use the converter function found there to return the value. The column name found in Cursor.description is only the first word of the column name, i. e. if you use something like 'as "x [datetime]"' in your SQL, then we will parse out everything until the first blank for the column name: the column name would simply be “x”.
Új hozzászólás Aktív témák
- ÚJ SteelSeries Arctis Nova 5P Bolti ár:50k INGYEN FOXPOST
- Szép ThinkPad Edge.15,6",FullHD IPS,Core i7 (8X3,3Ghz)GT740 2/4GB VGA,8/16GB RAM,256-512SSD,JÓ akku,
- Szinte ÚJ SteelSeries Tusq Gaming Bolti ár:25k INGYEN FOXPOST
- ELADÓ Yaesu FT-70DE-B2 C4FM/FM VHF/UHF kétsávos kézi adóvevő
- Apple iPhone SE (2020) - 64 GB - fekete (249) Újszerű, 10000.- Ft ajándék kiegészítőkre, gar
- REFURBISHED - DELL Precision Dual USB-C Thunderbolt Dock - TB18DC
- Apple MacBook Air M2 256GB SSD, 1 Év Garanciával
- Dell 14 Latitude 7450 WUXGA 2in1 Touch X360 Ultra5 135U 12mag 16GB 512GB Win11 Pro WiFi7 Garancia
- Legjobb kijelzős!!! HP ZBook Power 15 G8 i7-11850H 32GB 1000GB Nvidia RTX A2000 1 év garancia
- Telefon felvásárlás!! iPhone 15/iPhone 15 Plus/iPhone 15 Pro/iPhone 15 Pro Max
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs


